Interview Prep/SRE & Reliability/Reliability Patterns in Production

Your NGINX rate limit returns 503 to throttled clients, and the SLO counts them as errors.

BeginnerTroubleshootingReliability Patterns in Production
Answer

Likely causes → limit_req returns 503 by default, so intentional throttling looks like server failure in the SLI and to clients (who may retry aggressively).

Diagnose →

grep -n "limit_req" /etc/nginx/nginx.conf

Correlate 503 spikes with limiting requests entries in the NGINX error log.

Fix → Set limit_req_status 429; (ingress-nginx: limit-req-status-code: "429" in the ConfigMap). Decide explicitly whether 429s for fair-use throttling count against the SLO; overload-driven 429s usually should.

Prevent → Document status codes for throttling and shedding, and include them in the SLI definition.

All SRE & Reliability questions

More on Reliability Patterns in Production