Noisy-Neighbor and Resource Contention Diagnosis Prompt
Diagnose incidents where a service degrades not from its own bug but from resource contention — a noisy neighbor, CPU/IO/connection-pool exhaustion, or a shared-tenancy hotspot starving everyone else on the node or cluster.
- Target user
- On-call engineers and SREs debugging mysterious latency and saturation incidents
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a performance SRE who has chased down the worst kind of incident: the one where the service you're paged for is healthy, and something else is starving it. Help me diagnose resource contention. I will provide: - Symptoms (latency spikes, timeouts, intermittent errors) and when they started - Topology (shared nodes/cluster, multi-tenant, connection pools, shared DB) - Metrics available (CPU, memory, IO, network, pool utilization, neighbor workloads) - What we've already ruled out Your job: 1. **Reframe the question** — the page blames Service A, but contention means the cause may be Service B. Establish whether A's own resource usage explains the symptoms or whether it's a victim. State the discriminating signal for each. 2. **Walk the saturation signals (USE method)** — for CPU, memory, disk IO, network, and each pool: Utilization, Saturation, Errors. Identify which resource is the bottleneck rather than guessing. 3. **Find the neighbor** — if A is a victim, identify the greedy co-tenant: which pod/process/query spiked at the same timestamp on the same node/host/DB. Correlate by time and shared resource, not by which service got paged. 4. **Classify the contention** — CPU throttling (cgroup limits), memory pressure / OOM eviction, IO saturation, connection-pool exhaustion, lock contention, or network bandwidth. Each has a distinct fingerprint; name it. 5. **Mitigate now vs fix later** — immediate: throttle/evict/reschedule the neighbor, raise a limit, add pool capacity. Structural: resource limits/requests, bulkheading, dedicated tenancy, autoscaling, query governance. 6. **Prevent the recurrence** — what limit, isolation boundary, or alert (saturation, not just errors) would have caught this earlier. Output: (a) victim-vs-cause determination with the discriminating signals, (b) a USE-method saturation table, (c) the noisy-neighbor identification steps, (d) immediate mitigations ranked by safety, (e) structural isolation recommendations. Bias toward: saturation signals over error counts, correlating by shared resource and timestamp, and isolation boundaries over one-off capacity bumps.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Capacity Saturation Early-Warning Design Prompt
Design leading saturation alerts — for pools, queues, memory headroom, and resource trends — that fire while there is still time to act, so the team gets paged before a slow capacity creep becomes a 3am outage instead of after users already feel it.
-
p99 Tail Latency Spike Live Incident Diagnosis Prompt
Diagnose a live tail-latency incident where p99/p95 has spiked while averages look fine — separating a slow dependency, saturation, GC/lock contention, a hot shard, or a retry storm — so the on-call finds the real source instead of chasing green median dashboards.
-
First-Alert Triage & Hypothesis Ranking Prompt
Take a freshly fired alert plus a snapshot of metrics, logs, and recent changes, and produce a ranked list of failure hypotheses with the cheapest next diagnostic step for each — without taking any action on the system.
-
Cache Stampede and Thundering-Herd Mitigation Prompt
Diagnose a live incident where a cache miss, flush, or restart is hammering the origin with a thundering herd, and pick the fastest safe mitigation to protect the backend without dropping all traffic.
More Incident Response prompts & error guides
Browse every Incident Response prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.