# LB excludes a not-ready but reachable replica (lab3)
# generated: 2026-10-16T13:34:41Z
# lb: haproxy:3.2-alpine

## 1. baseline: requests through LB by replica
  24 69acca5cd6cd
  16 e9df09de18d5
   stats: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) BACKEND=UP 

## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
   instance-id: 78bfb4c32a64, readiness while its database is reachable: 200
   load balancer slot for the candidate: api3, stats: api1=UP api2=UP api3=UP api4=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
   stats after failure: api1=UP api2=UP api3=DOWN api4=MAINT (resolution) BACKEND=UP 

## 4. 40 requests through LB while the candidate is not ready
  19 69acca5cd6cd
  21 e9df09de18d5
   (the candidate must not appear above)

## 5. business writes through LB during the exclusion
  "failed_requests": 0,
  "error_ratio": 0.0,
  "successful_rps": 1247.834,

## 6. cleanup
   stats after cleanup: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) BACKEND=UP 
