Intermittent 502 Hunt

Find the cause of sporadic 502s and 504s behind a load balancer or proxy: confirm the balancer's idle timeout is shorter than the upstream's keepalive timeout (the reverse makes the backend close a connection the balancer is reusing), then deregistration delay against the longest request, health-check depth, and deploy-time bursts from SIGTERM handling; correlate balancer and app logs by request id to prove who closed. Use when an ALB, nginx, Envoy or Google Cloud load balancer returns occasional 502 Bad Gateway or 504, for "random 502s we can't reproduce", "a burst of 502s every deploy", "upstream prematurely closed connection" or "the app logs show nothing". Not for a pod crashing or never Ready (k8s-triage), edge cache rules (cdn-configuration), name resolution (dns-operations), port exhaustion (connection-exhaustion-hunt) or a live outage (incident-response).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 5316e95d54

Frequently asked questions

npx get-skill add greenblacked/intermittent-502-hunt