Update demo/scenarios.py
Browse files- demo/scenarios.py +54 -0
demo/scenarios.py
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Incident scenarios for the demo
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
INCIDENT_SCENARIOS = {
|
| 6 |
+
"Cache Miss Storm": {
|
| 7 |
+
"description": "Redis cluster experiencing 80% cache miss rate causing database overload",
|
| 8 |
+
"severity": "CRITICAL",
|
| 9 |
+
"component": "redis_cache",
|
| 10 |
+
"metrics": {
|
| 11 |
+
"cache_hit_rate": 18.5,
|
| 12 |
+
"database_load": 92,
|
| 13 |
+
"response_time_ms": 1850,
|
| 14 |
+
"affected_users": 45000
|
| 15 |
+
},
|
| 16 |
+
"business_impact": {
|
| 17 |
+
"revenue_loss_per_hour": 8500,
|
| 18 |
+
"sla_violation": True,
|
| 19 |
+
"customer_sat_change": -40
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
"Database Connection Pool Exhaustion": {
|
| 23 |
+
"description": "Database connection pool exhausted causing API timeouts",
|
| 24 |
+
"severity": "HIGH",
|
| 25 |
+
"component": "database",
|
| 26 |
+
"metrics": {
|
| 27 |
+
"active_connections": 98,
|
| 28 |
+
"max_connections": 100,
|
| 29 |
+
"api_latency_ms": 2450,
|
| 30 |
+
"error_rate": 15.2
|
| 31 |
+
},
|
| 32 |
+
"business_impact": {
|
| 33 |
+
"revenue_loss_per_hour": 4200,
|
| 34 |
+
"affected_services": 3,
|
| 35 |
+
"sla_violation": True
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"Memory Leak in Production": {
|
| 39 |
+
"description": "Java service memory leak causing gradual degradation",
|
| 40 |
+
"severity": "HIGH",
|
| 41 |
+
"component": "java_service",
|
| 42 |
+
"metrics": {
|
| 43 |
+
"memory_usage": 96,
|
| 44 |
+
"gc_pause_time_ms": 4500,
|
| 45 |
+
"error_rate": 28.5,
|
| 46 |
+
"restart_frequency_per_hour": 12
|
| 47 |
+
},
|
| 48 |
+
"business_impact": {
|
| 49 |
+
"revenue_loss_per_hour": 5500,
|
| 50 |
+
"session_loss": 8500,
|
| 51 |
+
"support_tickets_increase": 300
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
}
|