fix(healthcheck): extend start_period to 2m to clarify initialization grace period

Revised the start_period in the Docker healthcheck example to 2 minutes, to avoid confusion about the property's role. This change highlights the intended use of start_period as a grace period for container initialization. By setting start_period to a duration longer than the interval (1 minute and 30 seconds), it becomes clearer that health check failures during this initial period will not count towards the retries limit.
This commit is contained in:
Victor Valle 2023-11-21 06:01:03 -08:00 committed by GitHub
parent a805e0c69a
commit 6dce82c3af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1252,7 +1252,7 @@ healthcheck:
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_period: 2m
```
`interval`, `timeout` and `start_period` are specified as