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/service
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
..
cmd.go Only hide commands if the env variable is set. 2016-09-19 13:28:15 -04:00
create.go
inspect.go Fix typs from go to Go 2016-10-18 19:40:16 +08:00
inspect_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
list.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00
opts.go Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
opts_test.go Fix cli/command/service/opts_test.go, and add some extra test cases 2016-09-27 15:27:02 +00:00
ps.go
remove.go
scale.go validate service parameter in client side to avoid api call 2016-09-26 17:18:02 +08:00
update.go Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
update_test.go