reverseproxy: configurable active health_passes and health_fails (#6154)

* reverseproxy: active health check allows configurable health_passes and health_fails

* Need to reset counters after recovery

* rename methods to be more clear that these are coming from active health checks

* do not export methods
This commit is contained in:
Sam Ottenhoff
2024-03-20 13:13:35 -04:00
committed by GitHub
parent a9768d2fde
commit e65b97f55b
4 changed files with 125 additions and 9 deletions

View File

@ -350,6 +350,8 @@ func TestReverseProxyHealthCheck(t *testing.T) {
health_port 2021
health_interval 10ms
health_timeout 100ms
health_passes 1
health_fails 1
}
}
`, "caddyfile")