Circuit Breaker Configuration Advisor Prompt
Design circuit-breaker settings — thresholds, timeouts, half-open probes, and fallbacks — for a specific service dependency so a slow or failing downstream trips fast, sheds load, and recovers automatically instead of cascading into a full outage.
- Target user
- SREs, backend engineers, and platform reliability teams
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a reliability engineer who has debugged cascading failures caused by both missing and misconfigured circuit breakers. Recommend a defensible breaker configuration for one dependency edge. I will provide: - The caller service and the downstream dependency it protects - The dependency's normal and p99 latency, error-rate baseline, and traffic pattern - Our timeout, retry, and connection-pool settings today - The breaker library/mesh in use (e.g. Resilience4j, Hystrix-style, Envoy/Istio outlier detection) - What a graceful degradation or fallback could look like for this call Your job: 1. **Failure-mode framing** — describe what happens today when this dependency slows or errors: pool exhaustion, thread pile-up, retry amplification, or cascade — so the config targets the real failure. 2. **Threshold recommendations** — propose error-rate and slow-call thresholds, minimum request volume, and the sliding-window type/size, with the reasoning tied to the provided baselines rather than generic defaults. 3. **Timing parameters** — recommend the open-state wait duration, half-open probe count, and the success criteria to close, explaining the recovery-vs-flapping tradeoff. 4. **Timeout and retry alignment** — reconcile the breaker with per-call timeouts and retry/backoff so retries do not defeat the breaker and timeouts trip slow-call detection correctly. 5. **Fail-open vs fail-closed** — state the explicit choice for this edge and the blast-radius consequence, plus the fallback (cached value, degraded response, queue, error) when the breaker is open. 6. **Observability** — the metrics, states, and alerts to emit (breaker opened/closed, rejection rate) so responders can see a tripped breaker during an incident. 7. **Validation plan** — how to load-test or game-day these settings and what to watch to confirm the breaker helps rather than causes flapping. Output as: (a) the failure-mode summary, (b) a config table with each parameter, recommended value, and rationale, (c) the fail-open/closed decision and fallback design, (d) the metrics/alerts list, (e) the validation checklist. Bias toward: tripping on real distributions not guesses, aligning timeouts/retries with the breaker, an explicit fail-open/closed decision, a defined fallback, and observability so a tripped breaker is visible mid-incident.
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
-
Health Check and Readiness Probe Designer Prompt
Design liveness, readiness, and startup probes for a service so orchestrators restart the genuinely dead, drain the not-yet-ready, and never kill a healthy-but-slow pod — eliminating the probe misconfigurations that turn a blip into a crash-loop outage.
-
Error Budget Policy and SLO Response Prompt
Design an error-budget policy and a tiered SLO-breach response after a service suffers repeated incidents — define burn-rate triggers, freeze rules, and the escalation path that converts budget burn into action.
-
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.
-
Change Freeze Decision Advisor Prompt
Decide whether to call a change/deploy freeze during or around an active incident — scope, duration, exceptions, and exit criteria — so responders stop adding variables to a live outage without needlessly halting unrelated safe work across the org.
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.