1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/router
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
..
build Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
checkpoint Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
container Move httputils error helpers to errdefs package 2019-03-16 00:42:23 +01:00
debug Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
distribution Return "invalid parameter" (4xx) errors for distribution 2019-02-08 10:35:26 +01:00
image Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
network Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
plugin Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
session move /session api endpoint out of experimental 2018-08-21 22:43:34 +00:00
swarm Use Runtime target 2019-02-19 13:14:17 -06:00
system Return a warning when running in a two-manager setup 2019-03-18 14:36:00 +01:00
volume Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
experimental.go fix typos 2018-09-01 21:26:38 +08:00
local.go Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
router.go Add canonical import comment 2018-02-05 16:51:57 -05:00