Skip to content
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

Add support for health start interval #3142

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Jul 6, 2023

This was added in moby/moby#40894.
Allows configuring a separate interval to run healthchecks at during the start period.
For instance after a service is healthy a healthcheck may only need to run once per 5 minutes but this can cause unneeded delays detecting when the task is healthy and adding it to the load balancer.

This is needed for the next commit which uses the new `StartInterval`
health config field.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This is a new option in the docker API to set the interval health-checks
are run during the start period.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #3142 (74b10bb) into master (957f1e9) will increase coverage by 61.67%.
The diff coverage is 60.00%.

@@             Coverage Diff             @@
##           master    #3142       +/-   ##
===========================================
+ Coverage        0   61.67%   +61.67%     
===========================================
  Files           0      155      +155     
  Lines           0    31144    +31144     
===========================================
+ Hits            0    19207    +19207     
- Misses          0    10393    +10393     
- Partials        0     1544     +1544     

@dperny
Copy link
Collaborator

dperny commented Jul 13, 2023

LGTM. Will, of course, need changes in moby/moby in daemon/cluster/convert and probably the executor. The dockerapi executor in this package is only used for testing scenarios.

@dperny dperny merged commit bc71908 into moby:master Jul 13, 2023
8 checks passed
@cpuguy83 cpuguy83 deleted the health_start_interval branch July 13, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants