-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully shutdown elasticsearch (#96363)
Early in shutdown, stop listening for HTTP requests and gracefully close all HTTP connections. Adds `http.shutdown_grace_period` setting, the maximum amount of time to wait for in-flight HTTP requests to finish. After that time, the http channels are all closed. Graceful shutdown procedure: 1) Stop listening for new HTTP connections 2) Tell all new requests to add `Connection: close` response header and close the channel after the request. 3) Wait up to the grace period for all open connections to close 4) If grace period expired, close all remaining connections Fixes: #96147
- Loading branch information
1 parent
2e81bcc
commit 18e0fea
Showing
6 changed files
with
434 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 96363 | ||
summary: Gracefully shutdown elasticsearch | ||
area: Infra/Node Lifecycle | ||
type: feature | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.