Skip to content

Asking advice on our current infrastructure #226

Answered by BretFisher
nckenn asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there.

  • You should only have odd numbers of Swarm Managers. I recommend 3 for HA. All other nodes would just be workers. No need to treat Managers special in this small environment.
  • One of the points of orchestrators is that you shouldn't need to manage "which VMs run which workloads". Just run the three stacks, set memory/cpu reservations and healthchecks in YAML, and let Swarm assign them to nodes.
  • In your case of this small environment, without knowing more, I'd just have three VMs, all Swarm Managers, and deploy portainer and app stacks without controlling which node they run on. If you run out of resources, it's up to you if you grow vertically (bigger VMs) or horizontally (more …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nckenn
Comment options

@BretFisher
Comment options

@nckenn
Comment options

@BretFisher
Comment options

Answer selected by nckenn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
docker docker swarm architecture design Cloud Native, distributed systems, microservices, etc.
2 participants