1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
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
..
backend Removed engine-api leftovers 2016-09-21 12:36:52 +02:00
blkiodev Add engine-api types to docker 2016-09-07 11:05:58 -07:00
container configure docker-init binary path 2016-09-27 14:49:17 +02:00
events Add engine-api types to docker 2016-09-07 11:05:58 -07:00
filters all: remove nil check for slices 2016-10-13 13:55:38 -07:00
mount Add engine-api types to docker 2016-09-07 11:05:58 -07:00
network Add engine-api types to docker 2016-09-07 11:05:58 -07:00
reference Add engine-api types to docker 2016-09-07 11:05:58 -07:00
registry Add engine-api types to docker 2016-09-07 11:05:58 -07:00
strslice Add engine-api types to docker 2016-09-07 11:05:58 -07:00
swarm Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
time Add engine-api types to docker 2016-09-07 11:05:58 -07:00
versions Move engine-api client package 2016-09-07 11:05:58 -07:00
auth.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
client.go API changes for service rollback and failure threshold 2016-10-18 10:09:30 -07:00
configs.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
errors.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
plugin.go Make graphdrivers work with pluginv2. 2016-09-20 08:49:48 -07:00
seccomp.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
stats.go Windows: stats support 2016-09-16 11:56:15 -07:00
types.go Merge pull request #27294 from mlaventure/hide-unused-volume-fields 2016-10-11 23:55:25 +02:00