Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

138
Vistas
Round Robin Behaviour of Docker SWARM container not working across multiple hosts

If a swarm service is deployed in a 2 node cluster (1manager+1worker). Assuming the replicas is set to 3, then containers will be launched: 2 in one node and 1 in the other node.

When the curl command is hit on IP address manager or worker - the container residing on the same host are being served in an RR manner. The request does not get served from the other node, hence the purpose of failover or HA (across multiple nodes ) is not being achieved by this configuration for me.

Let me share you the detailed steps that I have done: https://privatedock.wordpress.com/2017/04/09/docker-swarm/

Kindly let me know if I missed something. Thanks in advance.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I see you're deploying in AWS and using the Public IP for Swarm advertise IP. Are you sure you want to do this? AWS network charges are based on data flowing through the public IP. Have you opened up your firewall rules for your public interface?

Port 7946 TCP/UDP for container network discovery.
Port 4789 UDP for the container overlay network.

You can rule out firewall if you used private IP addresses within your VPC. And you won't get charged for bandwidth.

Your service was also created using VIP for load balancing. If you wanted DNS RR, you'd need to add --endpoint-mode dnsrr to your docker service create command.

You can verify that DNS RR is working if you run the following python script in your containers. Replace SERVICE_NAME with the service you'd want to resolve against.

python -c "import socket; print socket.gethostbyname_ex('SERVICE_NAME')[2]"

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda