Skip to content

revisit envoy shutdown settings#4288

Merged
zirain merged 2 commits intoenvoyproxy:mainfrom
arkodg:shutdown-default
Sep 21, 2024
Merged

revisit envoy shutdown settings#4288
zirain merged 2 commits intoenvoyproxy:mainfrom
arkodg:shutdown-default

Conversation

@arkodg
Copy link
Copy Markdown
Contributor

@arkodg arkodg commented Sep 19, 2024

  • Set default minDrainDuration to 10s . Since the default readinessProbe.periodSeconds is 5s, this gives any LB controller 5s to update its endpoint pool if its basing it off the k8s API server
  • Set default drainTimeout to 60s. This ensures clients holding persistent connections, can be closed sooner.
    Fixes: Graceful shutdown drain not happening due to prometheus #4125
  • Updates the default terminationGracePeriodSeconds to 360s which is 300s more than the default drain timeout

* Set default minDrainDuration to `10s` . Since the default
  `readinessProbe.periodSeconds` is `5s`, this gives any LB controller
  `5s` to update its endpoint pool if its basing it off the k8s API
  server
* Set default `drainTimeout` to `60s`. This ensures clients holding
  persistent connections, can be closed sooner.
  Fixes: envoyproxy#4125
* Updates the default `terminationGracePeriodSeconds` to `360s`
which is `300s` more than the default drain timeout

Signed-off-by: Arko Dasgupta <[email protected]>
@arkodg arkodg requested a review from a team as a code owner September 19, 2024 22:26
@arkodg arkodg added the release-note Indicates a required release note label Sep 19, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.66%. Comparing base (91bea68) to head (e2268a8).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4288      +/-   ##
==========================================
+ Coverage   65.64%   65.66%   +0.01%     
==========================================
  Files         197      197              
  Lines       23555    23557       +2     
==========================================
+ Hits        15462    15468       +6     
+ Misses       6982     6981       -1     
+ Partials     1111     1108       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arkodg arkodg requested a review from a team September 19, 2024 23:01
@zirain zirain merged commit 475cd61 into envoyproxy:main Sep 21, 2024
@arkodg arkodg mentioned this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note Indicates a required release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graceful shutdown drain not happening due to prometheus

3 participants