Skip to content

Wait a bit for (*TeleportProcess).Shutdown to finish on SIGTERM#39203

Merged
espadolini merged 1 commit intomasterfrom
espadolini/fastshutdown-wait
Mar 11, 2024
Merged

Wait a bit for (*TeleportProcess).Shutdown to finish on SIGTERM#39203
espadolini merged 1 commit intomasterfrom
espadolini/fastshutdown-wait

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR adds an additional grace timeout for the fast shutdown procedure in Teleport (triggered by SIGTERM and SIGINT), waiting two seconds for Shutdown() to return after the three second timeout is hit so that we can give a better shot at cleaning up things that would not otherwise get cleaned up by the termination of the process (like UNIX sockets).

Closes #10075

changelog: improved clean up of system resources during a fast shutdown of Teleport

@espadolini espadolini added this pull request to the merge queue Mar 11, 2024
Merged via the queue into master with commit d5554c2 Mar 11, 2024
@espadolini espadolini deleted the espadolini/fastshutdown-wait branch March 11, 2024 18:33
@public-teleport-github-review-bot
Copy link
Copy Markdown

@espadolini See the table below for backport results.

Branch Result
branch/v13 Failed
branch/v14 Failed
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve non-graceful restarts

3 participants