# LB excludes a not-ready but reachable replica (lab5) # generated: 2026-10-30T19:33:46Z # lb: haproxy:3.2-alpine ## 1. baseline: requests through LB by replica 23 5012b453c822 17 63bc0da849d5 stats: api1=UP 1/2 api2=UP api3=MAINT (resolution) api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP ## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias instance-id: 4da30d29f490, readiness while its database is reachable: 200 load balancer slot for the candidate: api1, stats: api1=UP api2=UP api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP ## 3. cut the candidate's database access (stop only the TCP proxy) candidate is still running: running, readiness: 503 waiting for the load balancer to mark api1 DOWN WARNING: api1 is still not DOWN stats after failure: api1=UP api2=UP api3=DOWN api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP ## 4. 40 requests through LB while the candidate is not ready 18 5012b453c822 22 63bc0da849d5 (the candidate must not appear above) ## 5. business writes through LB during the exclusion "failed_requests": 0, "error_ratio": 0.0, "successful_rps": 810.163, ## 6. cleanup stats after cleanup: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP