%%{init: {
'theme': 'dark',
'themeVariables': {
'primaryColor': '#ff9800', /* Orange for main categories */
'primaryTextColor': '#fff',
'primaryBorderColor': '#fff',
'lineColor': '#fff', /* Ensure lines are white */
'secondaryColor': '#4caf50', /* Green for Cache Issues */
'tertiaryColor': '#006064', /* Blue for Network Problems */
'quaternaryColor': '#8e44ad', /* Purple for Origin Issues */
'mainBkg': '#2d3436',
'nodeBorder': '#fff',
'clusterBkg': '#2d3436',
'clusterBorder': '#fff'
}
}}%%
graph TB
Performance[Performance Bottlenecks]
%% First Level
Performance --> Cache[Cache Issues]
Performance --> Network[Network Problems]
Performance --> Origin[Origin Issues]
%% Cache Issues (Compact Layout)
Cache --> LowCache[Low Cache Hit Ratios]
Cache --> TTL[Ineffective/Low TTLs]
Cache --> Rules[Missing Cache Rules]
Cache --> Design[Poor Cache Key Design]
%% Network Problems (Compact Layout)
Network --> Latency[High Origin Latency]
Network --> Routing[Poor Routing Paths]
Network --> Connectivity[Regional Connectivity]
Network --> Limits[Connection Limits]
%% Origin Issues (Compact Layout)
Origin --> Overload[Server Overload]
Origin --> Database[Database Bottlenecks]
Origin --> Resources[Resource Exhaustion]
Origin --> Timeouts[Timeout Configuration]
%% Class Definitions
classDef orange fill:#ff9800,stroke:#fff,stroke-width:2px,color:#fff;
classDef green fill:#4caf50,stroke:#fff,stroke-width:2px,color:#fff;
classDef blue fill:#006064,stroke:#fff,stroke-width:2px,color:#fff;
classDef purple fill:#8e44ad,stroke:#fff,stroke-width:2px,color:#fff;
class Performance orange;
class Cache,LowCache,TTL,Rules,Design green;
class Network,Latency,Routing,Connectivity,Limits blue;
class Origin,Overload,Database,Resources,Timeouts purple;