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?

  • While Peter is correct, the idea you have about desktops in a dynamic swarm has lots of concerns and potential issues in its design. Swarm managers need to be an odd number and generally only 3-7 of them in a Swarm. Nodes must have well-connected networks to each other with a list of ports open and no NAT between them. Your idea sounds fun, but is not what Swarm was designed for unless your desktops are all Linux hosts that mostly stay up and managers are on fixed IP's. Feb 22 '18 at 3:25

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.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.