forked from mtusi2026/mtusi2026lab3
Grade 4 of lab 3 is closed. A replica on SIGTERM first answers 503 on readiness for a two second window, longer than the 1.5 s worst detection, and only then closes its listener and finishes accepted requests within five seconds; the balancer lets a replica back only after two passed checks. A test pins the timeout chain to compose, HAProxy and the stop hook. make detection measured 0.71 s for SIGTERM (before the process exited at 2.49 s), 0.67 s for a killed process, 2.76 s for a hung one and 1.23 s until no replica was left with PostgreSQL down. make failover-each stopped and restored each replica under k6 at 100 rps with no errors and no balancer retries, make lb-check ran 20 same-key races of 8, make limits checks limits and isolation against a policy, and make rolling-update replaced the level 3 image with the current one under load with capacity kept at two and no errors, migrate running once. The new lab3-failover-operations spec is synced, and the lab 1 operability and lab 2 dependency failure specs carry their deltas. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>