mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
Add min_successes
This commit is contained in:
parent
c8b8c3a7b2
commit
2c61b50b5f
3 changed files with 29 additions and 0 deletions
|
|
@ -352,6 +352,10 @@ func (h *Handler) Provision(ctx caddy.Context) error {
|
|||
if h.HealthChecks.Passive.FailDuration > 0 && h.HealthChecks.Passive.MaxFails == 0 {
|
||||
h.HealthChecks.Passive.MaxFails = 1
|
||||
}
|
||||
|
||||
if h.HealthChecks.Passive.MinSuccessRatio > 0 && h.HealthChecks.Passive.MinSuccesses == 0 {
|
||||
h.HealthChecks.Passive.MinSuccesses = 5
|
||||
}
|
||||
}
|
||||
|
||||
// if active health checks are enabled, configure them and start a worker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue