Skip to content

Comments

Add support for health start interval#3142

Merged
dperny merged 2 commits intomoby:masterfrom
cpuguy83:health_start_interval
Jul 13, 2023
Merged

Add support for health start interval#3142
dperny merged 2 commits intomoby:masterfrom
cpuguy83:health_start_interval

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.

cpuguy83 added 2 commits July 6, 2023 19:31
This is needed for the next commit which uses the new `StartInterval`
health config field.

Signed-off-by: Brian Goff <[email protected]>
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 <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2023

Codecov Report

Attention: Patch coverage is 60.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 61.67%. Comparing base (957f1e9) to head (74b10bb).
Report is 88 commits behind head on master.

Additional details and impacted files
@@             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
@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.

3 participants