DockerCLI/command/formatter
Aaron Lehmann 06ebd4517d 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
..
container.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
container_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
custom.go Refactor formatter. 2016-09-13 17:58:12 -04:00
custom_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
disk_usage.go Move types.Volumes optional fields under a new type 2016-10-11 11:49:26 -07:00
formatter.go Add formatter for service inspect 2016-09-19 16:28:19 -04:00
image.go Add new df subcomand to the system command 2016-09-30 14:35:23 -07:00
image_test.go Add new df subcomand to the system command 2016-09-30 14:35:23 -07:00
network.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
network_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
reflect.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
reflect_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
service.go Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
stats.go Hide the mutex in formatter.ContainerStats 2016-10-10 21:52:53 +03:00
volume.go Merge pull request #26519 from AkihiroSuda/fix-cli-command-formatter-json-support 2016-10-17 22:44:04 +01:00
volume_test.go Merge pull request #26519 from AkihiroSuda/fix-cli-command-formatter-json-support 2016-10-17 22:44:04 +01:00