moby/api
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
..
errors Move errors/ to api/errors 2016-09-16 12:27:13 -04:00
fixtures Add more unit tests (thus coverage) to pkg api 2015-08-04 19:51:02 +02:00
server Merge pull request #27923 from vieux/plugin_set_gogogo 2016-11-07 17:07:14 -08:00
templates/server Update to inline comments. 2016-10-31 11:13:41 -04:00
types cli: Add options for Raft snapshotting 2016-11-08 13:14:01 -08:00
common.go Windows: Require REST 1.25 or later 2016-10-31 14:33:59 -07:00
common_test.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
common_unix.go Windows: Require REST 1.25 or later 2016-10-31 14:33:59 -07:00
common_windows.go Windows: Allow API v1.24 2016-11-04 10:10:42 -07:00
README.md Update README.md 2014-07-04 18:21:13 +09:00
swagger-gen.yaml Use a config to generate swagger api types 2016-10-31 11:13:41 -04:00
swagger.yaml Fix validation errors in swagger.yaml 2016-11-07 11:03:10 -08:00

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon