You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
health-check remove does not reset backends marked DOWN #1811
sozu cluster health-check remove stops probing a cluster but leaves every backend in the health state the last probes left it in. A backend a probe marked DOWN therefore stays out of rotation indefinitely: nothing probes it any more, so nothing can mark it UP again. Only re-adding the cluster without a health check brings it back.
Cause
The worker handles RemoveHealthCheck with Server::remove_health_check_state (lib/src/server.rs), which only drops the cluster's entry from BackendMap::health_check_configs. It skips the backend reset (and the availability rollup re-emission) that BackendMap::set_health_check_config(cluster_id, None) (lib/src/backends.rs) performs on the AddCluster path.
Related gap: on the AddCluster-without-health-check path the backends are reset, but probes already in flight are kept; record_check_result uses the probe's own copy of the config, so such a probe can mark a backend DOWN again after the reset.
Reproduction
Cluster with two backends; one answers 404 on the probe path but 200 on real traffic.
health-check set (HTTP mode, unhealthy_threshold = 1): that backend is marked DOWN, traffic goes only to the other one.
health-check remove: traffic still never reaches the first backend, although it serves requests.
Expected (as doc/health_checks.md states): "All backends in the cluster are reset to healthy and resume receiving traffic immediately."
Activity
Merge remote-tracking branch 'origin/main' into fix/health-check-remo…
fix(health-check): reset backends marked DOWN when the health check i…