-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shutdown cluster cleanly when SIGTERM or SIGINT is received
Previously, if a developer working with Wallaroo sent a SIGINT via ctrl-c in the terminal, Wallaroo would exit but wouldn't gracefully shutdown. This could lead to errors on the next application startup as recovery files weren't dispose of properly. With this commit, sending SIGTERM or SIGINT will shut down Wallaroo gracefully in the same fashion that the external "shutdown cluster" command work. Once we have "shrink to fit" in place, the plan would be to have SIGTERM and SIGINT remove that individual worker from the cluster rathter than shut the entire cluster down. Once we have shrink to fit in place, we might change our mind and go in a different direction and leave this functionality as is. Closes #1701
- Loading branch information
1 parent
ac5c0f9
commit fe37410
Showing
3 changed files
with
35 additions
and
2 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
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