1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command
Aaron Lehmann 6d4b527699 Service update failure thresholds and rollback
This adds support for two enhancements to swarm service rolling updates:

- Failure thresholds: In Docker 1.12, a service update could be set up
  to either pause or continue after a single failure occurs. This adds
  an --update-max-failure-ratio flag that controls how many tasks need to
  fail to update for the update as a whole to be considered a failure. A
  counterpart flag, --update-monitor, controls how long to monitor each
  task for a failure after starting it during the update.

- Rollback flag: service update --rollback reverts the service to its
  previous version. If a service update encounters task failures, or
  fails to function properly for some other reason, the user can roll back
  the update.

SwarmKit also has the ability to roll back updates automatically after
hitting the failure thresholds, but we've decided not to expose this in
the Docker API/CLI for now, favoring a workflow where the decision to
roll back is always made by an admin. Depending on user feedback, we may
add a "rollback" option to --update-failure-action in the future.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-10-18 10:09:50 -07:00
..
bundlefile Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
checkpoint Make all the experimental subcommand consistent. 2016-09-19 16:27:23 -04:00
commands Merge pull request #26716 from dnephin/move-system-commands 2016-09-20 15:54:01 +02:00
container Merge pull request #27476 from yuexiao-wang/fix-typos-volume 2016-10-18 13:50:20 +01:00
formatter Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
idresolver Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
image Fix typs from go to Go 2016-10-18 19:40:16 +08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Fix typs from go to Go 2016-10-18 19:40:16 +08:00
node Fix typs from go to Go 2016-10-18 19:40:16 +08:00
plugin Fix typs from go to Go 2016-10-18 19:40:16 +08:00
prune better prune and system df 2016-10-11 00:42:21 +08:00
registry Move the search command to the registry package. 2016-09-19 13:28:15 -04:00
service Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
stack Allow docker deploy command accept filename with/without extension 2016-10-14 11:44:15 -07:00
swarm Let swarmkit handle cluster defaults in swarm init if not specified 2016-09-27 04:19:38 -07:00
system Fix typs from go to Go 2016-10-18 19:40:16 +08:00
task Fix partial/full filter issue in service tasks --filter 2016-09-26 16:01:20 -07:00
volume Fix typs from go to Go 2016-10-18 19:40:16 +08:00
cli.go Remove RetrieveAuthConfigs 2016-09-09 15:50:01 -04:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00