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

Stack rollback on failure #595

Open
dedalusj opened this issue Oct 3, 2017 · 3 comments
Open

Stack rollback on failure #595

dedalusj opened this issue Oct 3, 2017 · 3 comments

Comments

@dedalusj
Copy link

dedalusj commented Oct 3, 2017

Stack updates should support rollback of the entire stack in cases where some of the service update fails.

Currently the docker stack deploy command offers the ability to automatically rollback failing service via the deploy -> update_config -> failure_action configuration but the rollback action is applied on a service by service basis.

If only some of the services fails during an update the above behaviour will rollback the failing services but update the healthy ones leaving the stack in an inconsistent state.

Furthermore the stack update is done non-interactively meaning that the only way to detect inconsistent state after an update is to actively monitor the state of all services in the stack and try to reconcile it with their respective desired state.

Moved from moby/moby#34712

@dnephin
Copy link
Contributor

dnephin commented Oct 3, 2017

I think to properly support such a feature stacks would need to be a swarmkit resource. Trying to implement this on the client side would be a mess.

@thaJeztah
Copy link
Member

I think this would probably face similar difficulties as implementing moby/moby#31333

@GRajaMca
Copy link

Hi @thaJeztah, @dnephin any updates on this or any suggestion to achieve this

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

No branches or pull requests

4 participants