Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker stop timeout buffer increased from 30s to 2m #2697

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Oct 27, 2020

Summary

When we call docker stopContainer, we pass to docker both a context (which has a timeout) and a timeout. The context is for cancelling the entire request if it's taking too long, the timeout is for docker to timeout the inner docker stop command. If stop fails, dockerd will fallback to trying to kill the process using harsher methods. To give the harsher methods time to finish, we add a buffer to the context on the request.

This PR increases that buffer from 30s to 2m, and also removes an unnecessary (and misleading) constant StopContainerTimeout

Testing

New tests cover the changes: no

Description for the changelog

enhancement - Docker stop timeout buffer increased from 30s to 2m

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sparrc sparrc force-pushed the stop-container-timeout branch 3 times, most recently from 142b8c6 to 85c30da Compare October 28, 2020 00:00
@sparrc sparrc changed the title Stop container timeout Docker stop timeout buffer increased from 30s to 1m Oct 28, 2020
@sparrc sparrc changed the title Docker stop timeout buffer increased from 30s to 1m [wip] Docker stop timeout buffer increased from 30s to 1m Oct 29, 2020
@sparrc sparrc force-pushed the stop-container-timeout branch 3 times, most recently from 382d41a to c0dbcd6 Compare October 29, 2020 04:17
@sparrc sparrc changed the title [wip] Docker stop timeout buffer increased from 30s to 1m [wip] Docker stop timeout buffer increased from 30s to 2m Oct 29, 2020
@sparrc sparrc changed the title [wip] Docker stop timeout buffer increased from 30s to 2m Docker stop timeout buffer increased from 30s to 2m Oct 29, 2020
@sparrc sparrc merged commit e3503a8 into aws:dev Nov 4, 2020
@sparrc sparrc deleted the stop-container-timeout branch November 4, 2020 23:52
@sparrc sparrc added this to the 1.48.0 milestone Nov 12, 2020
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.

4 participants