Skip to content

health-check remove does not reset backends marked DOWN #1811

Closed

Description

@FlorentinDUBOIS

Summary

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

  1. Cluster with two backends; one answers 404 on the probe path but 200 on real traffic.
  2. health-check set (HTTP mode, unhealthy_threshold = 1): that backend is marked DOWN, traffic goes only to the other one.
  3. 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

  1. added a commit that references this issue on Oct 4, 2026
    6c3b8e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions