Spaces:
Running on Zero
Running on Zero
A newer version of the Gradio SDK is available: 6.22.0
Runbook: Cascading Error Rate Increase
Overview
When error rates appear on multiple services simultaneously, always identify the origin service before attempting any remediation. Treating symptoms (downstream) before the root cause wastes time and can introduce additional instability.
Symptoms
- error_rate_pct elevated on 2+ services
- Errors appeared first (or are highest) on one specific service
- Log errors: "502 Bad Gateway", "upstream connection refused", "circuit breaker half-open"
Diagnosis Steps
- Run
diagnostic_queryon ALL services (metric=error_rate_pct) - The service with the HIGHEST error rate is most likely the origin
- Confirm with
log_inspection— look for "502" or "connection refused" patterns - Check if downstream services show "cascaded_errors" in active_faults
Root Cause Identification
- The origin service will have both high error rate AND its own upstream errors in logs
- Downstream services will reference the upstream service name in their error logs
Remediation
- Fix origin service FIRST:
rollback(if recent deploy) orrestart_service - Do NOT restart downstream services first — cascade will clear once origin is fixed
- Use
circuit_breakeron downstream services only as a last resort to stop cascade spread
Quarantine Gate Notes
restart_serviceon payment-service is HIGH RISK and will be blocked- Use
circuit_breakeron payment-service if it's downstream of the cascade
Verification
- After fixing origin: confirm its error_rate_pct drops to < 1%
- Downstream services should self-heal within 1-2 diagnostic cycles