Docker Community Forums

Share and learn in the Docker community.

Recommended HA deployment for Docker Swarm with Consul


(Rm25282) #1

Hi there,

Just a quick question around the recommended deployment architecture for HA swarm. From reading the documentation it states that

The master is running both the swarm manager and a swarm agent container. This isn’t recommended in a production environment because it can cause problems with agent failover.

In addition to that all the examples show the discovery service clustered on 3 other nodes.

So my question is - for a recommended HA deployments architecture should we have 9 machines in total - 3 swarm managers, 3 swarm nodes and 3 consul nodes?

Many thanks,
Richard


(Funkytaco) #2

The master is running both the swarm manager and a swarm agent container. This isn’t recommended in a production environment because it can cause problems with agent failover.

The way I interpreted that is you should run a swarm binary on the swarm manager, not a docker container. But, I’m still learning swarm myself.