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

Wait longer for docker to kill containers during stop/restart #175

Merged
merged 2 commits into from
Jan 13, 2017

Conversation

intjonathan
Copy link
Contributor

Passing identical timeouts to Docker and the Excon client resulted in
Excon giving up too soon when Docker was trying to kill timed-out containers.

For example, you may set a docker stop timeout of 30, expecting your
service to respond adequately to a KILL after 30 seconds. However,
your deploy would stop immediately after the 30 second timeout because
Excon would give up right away.

This adds 120 seconds to the given stop timeout, then passes that to
the Excon client. This should give the deploy plenty of time for
Docker to do its business even on sad servers.

Followup to #171

Jonathan Owens added 2 commits January 13, 2017 14:03
Passing identical timeouts to Docker and the Excon client resulted in
Excon giving up too soon when Docker was trying to kill timed-out containers.

For example, you may set a docker stop timeout of 30, expecting your
service to respond adequately to a KILL after 30 seconds. However,
your deploy would stop immediately after the 30 second timeout because
Excon would give up right away.

This adds 120 seconds to the given stop timeout, then passes that to
the Excon client. This should give the deploy plenty of time for
Docker to do its business even on sad servers.

Followup to #171
@intjonathan intjonathan merged commit 71ba267 into master Jan 13, 2017
@relistan
Copy link
Collaborator

👍

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.

None yet

2 participants