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/swarm
Sebastiaan van Stijn 81eef17e38
Return a warning when running in a two-manager setup
Running a cluster in a two-manager configuration effectively *doubles*
the chance of loosing control over the cluster (compared to running
in a single-manager setup). Users may have the assumption that having
two managers provides fault tolerance, so it's best to warn them if
they're using this configuration.

This patch adds a warning to the `info` response if Swarm is configured
with two managers:

    WARNING: Running Swarm in a two-manager configuration. This configuration provides
             no fault tolerance, and poses a high risk to loose control over the cluster.
             Refer to https://docs.docker.com/engine/swarm/admin_guide/ to configure the
             Swarm for fault-tolerance.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-18 14:36:00 +01:00
..
runtime Add canonical import comment 2018-02-05 16:51:57 -05:00
common.go Add canonical import comment 2018-02-05 16:51:57 -05:00
config.go Use Runtime target 2019-02-19 13:14:17 -06:00
container.go Add support for using Configs as CredentialSpecs in services 2019-02-04 15:29:33 -06:00
network.go Support SCTP port mapping (bump up API to v1.37) 2018-02-20 11:15:36 +09:00
node.go Add canonical import comment 2018-02-05 16:51:57 -05:00
runtime.go Output network attachment task information 2018-05-22 23:36:30 +02:00
secret.go api: Add Templating parameter to SecretSpec and ConfigSpec 2018-02-16 11:25:13 -05:00
service.go Add canonical import comment 2018-02-05 16:51:57 -05:00
swarm.go Return a warning when running in a two-manager setup 2019-03-18 14:36:00 +01:00
task.go Added support for maximum replicas per node to services 2018-12-24 02:04:15 +02:00