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

Compose CLI - Rolling service restart #2155

Closed
will-chan opened this issue Sep 25, 2015 · 2 comments
Closed

Compose CLI - Rolling service restart #2155

will-chan opened this issue Sep 25, 2015 · 2 comments
Assignees
Labels
area/rancher-compose kind/enhancement Issues that improve or augment existing functionality

Comments

@will-chan
Copy link
Contributor

Add an optional rancher-compose restart --batch-size "2" where it can restart "2" containers from a given service at a time rather than restarting all containers and potentially disrupting the service itself.

@will-chan will-chan added kind/enhancement Issues that improve or augment existing functionality area/rancher-compose labels Sep 25, 2015
@fentas
Copy link

fentas commented Oct 1, 2015

Also this could be useful(?) for rolling service restart

# Set the interval to 30 seconds, which is the time between 
# when the containers restart
$ rancher-compose restart service --interval "30000"

@sangeethah
Copy link
Contributor

Tested with rancher-compose-v0.7.0-rc1
Rancher server - Build from master

Rolling restart is now supported from rancher-compose using the following command:

./rancher-compose -p test1 -f dc.yml restart --batch-size 2 --interval 30000

This should be available in the next rancher-server release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rancher-compose kind/enhancement Issues that improve or augment existing functionality
Projects
None yet
Development

No branches or pull requests

5 participants