patterndockerMinor
Is a decentralized Docker swarm possible?
Viewed 0 times
dockerswarmpossibledecentralized
Problem
I want to run services in our office in containers. The problem I have is that we do not have a spare machine available to act as the dedicated host.
So I am considering creating a swarm using everyone's desktop workstations as the workers. But if the manager node (my computer) is shutdown then the entire swarm stops.
I envisioned a swarm where every worker can act as a manager if needed. When the manager dies, another worker assumes the role as manager and the service continues running uninterrupted.
Is it possible to create a decentralized swarm where any available node can assume the role as a manager as needed?
So I am considering creating a swarm using everyone's desktop workstations as the workers. But if the manager node (my computer) is shutdown then the entire swarm stops.
I envisioned a swarm where every worker can act as a manager if needed. When the manager dies, another worker assumes the role as manager and the service continues running uninterrupted.
Is it possible to create a decentralized swarm where any available node can assume the role as a manager as needed?
Solution
By Docker Swarm design it is dencentralized, so you can promote any node to a manager. Normally, 3 managers are enough, for landscapes with thousands of nodes 5 are enough.
https://docs.docker.com/engine/swarm/admin_guide/
https://docs.docker.com/engine/swarm/admin_guide/
Context
StackExchange DevOps Q#3387, answer score: 2
Revisions (0)
No revisions yet.