# LB excludes a not-ready but reachable replica (lab5) # generated: 2026-10-30T19:20:42Z # lb: haproxy:3.2-alpine ## 1. baseline: requests through LB by replica 16 803d72737a58 24 d6715be2c42f stats: api1=UP 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: 515cb33ab1b9, readiness while its database is reachable: 200 load balancer slot for the candidate: api3, 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 api3 DOWN api3 went DOWN 3s after its database was cut (check: inter 2s fall 2) 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 19 803d72737a58 21 d6715be2c42f (the candidate must not appear above) ## 5. business writes through LB during the exclusion "failed_requests": 0, "error_ratio": 0.0, "successful_rps": 919.321, ## 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