moby/cli/command
Aaron Lehmann 842d11f44c cli: Add options for Raft snapshotting
Add the following options to "swarm init" and "swarm update":

- --max-snapshots: Retain this many old Raft snapshots in addition
  to the latest one

- --snapshot-interval: Number of log entries between Raft snapshots

These options already existed in SwarmKit and the Docker API but were
never exposed in the CLI. I'm adding them here to fix this oversight.

--max-snapshots may be useful for debugging purposes and more
conservative users who want to store rolling backups of old versions of
the Raft state.

--snapshot-interval is most useful for performance tuning. The default
value of 10000 may not be ideal for some setups.

There is also a LogEntriesForSlowFollowers option that is not exposed. I
decided not to expose it along with these others because I don't think
it's generally useful (and I'm not sure what I would call the CLI flag).
But if people want, I can expose it for the sake of completeness.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-11-08 13:14:01 -08:00
..
bundlefile Make experimental a runtime flag 2016-10-24 15:20:01 -07:00
checkpoint Update for docker checkpoint 2016-11-08 16:56:29 +08:00
commands always add but hide experimental cmds and flags 2016-11-03 17:31:12 -07:00
container context.Context should be the first parameter of a function 2016-11-08 14:51:17 +08:00
formatter Add unit tests to cli/command/formatter/stats.go 2016-10-27 18:00:38 +03:00
idresolver Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
image modify to improve code readability 2016-11-08 08:37:44 +08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network add docker network prune 2016-10-25 06:43:54 +00:00
node Merge pull request #25983 from jhorwit2/jah/ps-refactor 2016-11-07 17:33:10 +01:00
plugin update cobra and use Tags 2016-11-04 12:04:14 -07:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Update deprecation versions for "email" and colon in "security options" 2016-11-01 09:12:27 -07:00
service Add --tty to docker service create/update 2016-11-07 16:42:32 -08:00
stack update cobra and use Tags 2016-11-04 12:04:14 -07:00
swarm cli: Add options for Raft snapshotting 2016-11-08 13:14:01 -08:00
system cli: Add options for Raft snapshotting 2016-11-08 13:14:01 -08:00
task fixes #27643 2016-10-28 08:02:57 +08:00
volume Update for docker volume create 2016-11-03 22:40:04 +08:00
cli.go update cobra and use Tags 2016-11-04 12:04:14 -07: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