Docker scales container but does not distribute requests

Asked

Viewed 12 times

0

I have a server with Docker-Compose installed in production. My setting:

inserir a descrição da imagem aqui

What happens is the second, I Scalo my php to 3, it scala but does not distribute the requests... Follow picture:

inserir a descrição da imagem aqui

I would like to know if I have made a mistake in the configuration or if there is a problem with Docker... Thank you!

  • scalar does not mean it will have load balancemanto, this should be done in your case in Nginx

1 answer

0

I was able to resolve it using --Scale at the time of server upgrade.

Ex.: Docker-Compose up -d --Scale php=5

I also found out that we can use the deploy.replicas option within the service. Thank you all

Browser other questions tagged

You are not signed in. Login or sign up in order to post.