New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed default value of the startInterval to 5s #47799
base: master
Are you sure you want to change the base?
Changed default value of the startInterval to 5s #47799
Conversation
Signed-off-by: Jack Walker <90711509+j2walker@users.noreply.github.com>
03f6dea
to
e7fe35c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; except the small typo 😅
@@ -25,6 +25,9 @@ const ( | |||
// Also the time before the first probe. | |||
defaultProbeInterval = 30 * time.Second | |||
|
|||
// Default interval between the container starting and the first probe run. | |||
defaultStartInverval = 5 * time.Second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo 😅
defaultStartInverval = 5 * time.Second | |
defaultStartInterval = 5 * time.Second |
@@ -25,6 +25,9 @@ const ( | |||
// Also the time before the first probe. | |||
defaultProbeInterval = 30 * time.Second | |||
|
|||
// Default interval between the container starting and the first probe run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments seems not correct. Start interval is the time between health checks during the start period
https://docs.docker.com/reference/dockerfile/#healthcheck
- What I did
Changed the startInterval default value to be 5s
- How I did it
Added a new variable named
defaultStartInterval
and set it to 5s. Before, the default value was set to proveInterval by accident.- How to verify it
Run the container's monitoring thread and check if the startInterval's default value is 5s instead of the original 30s.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)