Performance Degradation Response
Service: {{ affected_service }} | Symptom: {{ symptom }}
Started: {{ start_time }}
Immediate Triage (0-10 min)
1. Quantify the Degradation
2. Correlate with Changes
3. Quick Win Checks
Systematic Investigation
Layer 1: Application
| Check |
How |
Finding |
| Recent deployments |
CI/CD pipeline history |
— |
| Hot endpoints |
APM top-N by latency |
— |
| Error rates by endpoint |
APM/metrics |
— |
| Thread/goroutine count |
Application metrics |
— |
| GC pressure |
JVM/runtime metrics |
— |
| Connection pool utilization |
Application metrics |
— |
| Cache hit rates |
Cache metrics |
— |
| Feature flags changed |
Feature flag tool |
— |
Layer 2: Database
| Check |
How |
Finding |
| Slow queries |
Slow query log / pg_stat_statements |
— |
| Connection count |
DB metrics |
— |
| Lock contention |
Lock monitoring |
— |
| Replication lag |
Replica status |
— |
| Table/index bloat |
Table statistics |
— |
| Disk I/O |
Storage metrics |
— |
| Query plan changes |
EXPLAIN on slow queries |
— |
Layer 3: Infrastructure
| Check |
How |
Finding |
| CPU utilization |
Infrastructure metrics |
— |
| Memory utilization |
Infrastructure metrics |
— |
| Disk I/O / IOPS |
Storage metrics |
— |
| Network throughput |
Network metrics |
— |
| Container restarts |
Kubernetes events |
— |
| Node health |
Node metrics / events |
— |
| Load balancer metrics |
LB dashboard |
— |
Layer 4: Network and DNS
| Check |
How |
Finding |
| DNS resolution time |
DNS metrics |
— |
| TLS handshake time |
APM/traces |
— |
| Inter-service latency |
Service mesh / traces |
— |
| Packet loss |
Network monitoring |
— |
| Bandwidth saturation |
Network metrics |
— |
Layer 5: External Dependencies
| Check |
How |
Finding |
| Third-party API latency |
APM/traces |
— |
| CDN performance |
CDN metrics |
— |
| DNS provider |
DNS monitoring |
— |
| Cloud provider issues |
Status page |
— |
Mitigation Strategies
Immediate Mitigations (apply while investigating)
| Strategy |
When to Use |
Risk |
| Scale horizontally |
CPU/memory constrained, traffic spike |
Cost, may not help if bottleneck is elsewhere |
| Rollback deployment |
Degradation correlates with recent deploy |
Reverting features |
| Enable rate limiting |
Traffic spike overwhelming service |
Rejecting legitimate traffic |
| Shed non-critical traffic |
Need to protect core functionality |
Feature degradation |
| Restart instances |
Memory leak or state corruption suspected |
Brief downtime per instance |
| Failover to replica |
Primary database performance issue |
Replication lag data loss |
| Disable expensive features |
Feature flag gated functionality causing load |
Feature unavailability |
| Scale database |
DB connection or CPU bottleneck |
Cost, potential brief interruption |
Decision Framework
Is the degradation caused by a recent change?
├── YES → Rollback the change
└── NO → Is it a traffic/load issue?
├── YES → Scale horizontally + rate limit if needed
└── NO → Is it a database issue?
├── YES → Address slow queries, scale reads, add caching
└── NO → Is it an external dependency?
├── YES → Activate circuit breakers, enable fallbacks
└── NO → Deep investigation (profiling, tracing)
Recovery Verification
Counter-Rationalizations
| Shortcut |
Counter |
Why |
| "We can skip some steps for this case" |
Adapt the workflow steps, don't skip them |
Skipped steps are where incidents and oversights originate |
| "The user seems to already know what to do" |
Complete all workflow phases with the user |
The workflow catches blind spots that experience alone misses |
| "This is a minor case, full process is overkill" |
Scale the process down, don't turn it off |
Minor cases become major when unstructured; the process scales, not disappears |
| "I'll fill in the details later" |
Complete each section before moving on |
Deferred details are forgotten; real-time capture is more accurate |
| "The template output isn't necessary" |
Always produce the structured output format |
Structured output enables comparison, audit trails, and handoff to other teams |
1---2name: performance-degradation-response3enabled: true4description: |5 Use when performing performance degradation response — response playbook for6 latency spikes, throughput degradation, and performance incidents. Covers7 systematic investigation of application, database, infrastructure, and network8 layers, with decision frameworks for mitigation strategies including scaling,9 traffic shedding, and targeted optimization.10required_connections:11 - prefix: slack12 label: "Slack (for incident coordination)"13config_fields:14 - key: affected_service15 label: "Affected Service"16 required: true17 placeholder: "e.g., checkout-api, search-service"18 - key: symptom19 label: "Primary Symptom"20 required: true21 placeholder: "e.g., p99 latency increased from 200ms to 5s"22 - key: start_time23 label: "When Degradation Started"24 required: false25 placeholder: "e.g., 2024-01-15 14:30 UTC"26features:27 - INCIDENT28metadata:29 source: https://skillmd.com/skills/cloudthinker-ai/performance-degradation-response30---3132# Performance Degradation Response3334Service: **{{ affected_service }}** | Symptom: **{{ symptom }}**35Started: **{{ start_time }}**3637## Immediate Triage (0-10 min)3839### 1. Quantify the Degradation40- [ ] What is the current p50, p95, p99 latency vs. baseline?41- [ ] What is the current error rate vs. baseline?42- [ ] What is the current throughput (RPS) vs. baseline?43- [ ] Is the degradation constant or intermittent?44- [ ] Is it affecting all endpoints or specific ones?45- [ ] Is it affecting all users or a subset?4647### 2. Correlate with Changes48- [ ] Any deployments in the last 24 hours?49- [ ] Any config changes?50- [ ] Any traffic pattern changes (organic growth, marketing campaign)?51- [ ] Any dependency issues (check vendor status pages)?52- [ ] Any infrastructure events (cloud provider, network)?5354### 3. Quick Win Checks55- [ ] Is a single instance/pod unhealthy (hot spot)?56- [ ] Is autoscaling responding (if applicable)?57- [ ] Is there an obvious resource constraint (CPU, memory, disk, connections)?5859## Systematic Investigation6061### Layer 1: Application62| Check | How | Finding |63|-------|-----|---------|64| Recent deployments | CI/CD pipeline history | — |65| Hot endpoints | APM top-N by latency | — |66| Error rates by endpoint | APM/metrics | — |67| Thread/goroutine count | Application metrics | — |68| GC pressure | JVM/runtime metrics | — |69| Connection pool utilization | Application metrics | — |70| Cache hit rates | Cache metrics | — |71| Feature flags changed | Feature flag tool | — |7273### Layer 2: Database74| Check | How | Finding |75|-------|-----|---------|76| Slow queries | Slow query log / pg_stat_statements | — |77| Connection count | DB metrics | — |78| Lock contention | Lock monitoring | — |79| Replication lag | Replica status | — |80| Table/index bloat | Table statistics | — |81| Disk I/O | Storage metrics | — |82| Query plan changes | EXPLAIN on slow queries | — |8384### Layer 3: Infrastructure85| Check | How | Finding |86|-------|-----|---------|87| CPU utilization | Infrastructure metrics | — |88| Memory utilization | Infrastructure metrics | — |89| Disk I/O / IOPS | Storage metrics | — |90| Network throughput | Network metrics | — |91| Container restarts | Kubernetes events | — |92| Node health | Node metrics / events | — |93| Load balancer metrics | LB dashboard | — |9495### Layer 4: Network and DNS96| Check | How | Finding |97|-------|-----|---------|98| DNS resolution time | DNS metrics | — |99| TLS handshake time | APM/traces | — |100| Inter-service latency | Service mesh / traces | — |101| Packet loss | Network monitoring | — |102| Bandwidth saturation | Network metrics | — |103104### Layer 5: External Dependencies105| Check | How | Finding |106|-------|-----|---------|107| Third-party API latency | APM/traces | — |108| CDN performance | CDN metrics | — |109| DNS provider | DNS monitoring | — |110| Cloud provider issues | Status page | — |111112## Mitigation Strategies113114### Immediate Mitigations (apply while investigating)115116| Strategy | When to Use | Risk |117|----------|------------|------|118| **Scale horizontally** | CPU/memory constrained, traffic spike | Cost, may not help if bottleneck is elsewhere |119| **Rollback deployment** | Degradation correlates with recent deploy | Reverting features |120| **Enable rate limiting** | Traffic spike overwhelming service | Rejecting legitimate traffic |121| **Shed non-critical traffic** | Need to protect core functionality | Feature degradation |122| **Restart instances** | Memory leak or state corruption suspected | Brief downtime per instance |123| **Failover to replica** | Primary database performance issue | Replication lag data loss |124| **Disable expensive features** | Feature flag gated functionality causing load | Feature unavailability |125| **Scale database** | DB connection or CPU bottleneck | Cost, potential brief interruption |126127### Decision Framework128```129Is the degradation caused by a recent change?130├── YES → Rollback the change131└── NO → Is it a traffic/load issue?132 ├── YES → Scale horizontally + rate limit if needed133 └── NO → Is it a database issue?134 ├── YES → Address slow queries, scale reads, add caching135 └── NO → Is it an external dependency?136 ├── YES → Activate circuit breakers, enable fallbacks137 └── NO → Deep investigation (profiling, tracing)138```139140## Recovery Verification141142- [ ] Latency returned to baseline (p50, p95, p99)143- [ ] Error rate returned to baseline144- [ ] Throughput returned to normal145- [ ] No elevated resource utilization146- [ ] Monitoring stable for 30+ minutes147- [ ] Remove any temporary mitigations (rate limits, extra scaling)148149## Counter-Rationalizations150151| Shortcut | Counter | Why |152|----------|---------|-----|153| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |154| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |155| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |156| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |157| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |158