Docker Community Forums

Share and learn in the Docker community.

Docker Swarm in two data-centers


(Trider) #1

Hello! I got stuck with the raft protocol, on the basis of which running docker swarm.
I have only 2 data centers, and I don’t know how many servers to allocate for the swarm infrastructure in the two data-centers? And how many docker containers with Elasticsearch to deploy in the swarm infrastructure?
Key condition: I will never have a 3rd data-сenter.


(Smcdowell) #2

The Raft protocol requires a majority of nodes to achieve quorum, which is why you need 3, 5, or 7 masters. Having masters in two data centers will not help you if one data center goes down (or if communication is lost between the two data centers).