I have an architecture of microservices running into a docker swarm stack. My swarm stack is composed with :
- 3 Managers (manager only)
- 3 workers
I have an external load-balancer to dispatch requests on the nodes of my stack with a single public IP.
I'm wondering if my external load-balancer should route traffic only to the managers, only to the workers or to all nodes.
I didn't find any direct answers to this question in the swarm documentation but i think it is better to route traffic to wokers only in order to save resources of managers. Is it the right way to do it ?