forked from mtusi2026/mtusi2026lab3
Level 4 of lab 3 asks for health checks, timeouts and SIGTERM handling that agree with each other, a stated check period and worst detection time, stopping every replica in turn under load with RPS, errors and recovery time, a parallel race on one idempotency key, limits and port and secret isolation, and a rolling update under load with migrations run once. The new lab3-failover-operations capability covers those guarantees. The lab 1 operability delta makes a replica leave the rotation first on SIGTERM: readiness answers 503 for a drain window longer than the balancer detection time, and only then the listener closes. The lab 2 dependency failure delta states that the balancer drops every replica and answers 503 itself while PostgreSQL is down. The design adds the measurement tooling from the prepared kit: k6 under a bench profile, probe load and detect modes, detection, failover-each, limits and rolling update scripts with one make target each. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>