You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the server container starts before the redis container (read: before the dns entry of the redis container hits the DNS server), the server container will never resolve the IP of the redis container and will result in an infinite loop and never resolving the DNS entry.
To Reproduce
Steps to reproduce the behavior:
docker stack deploy checkmate.yml within Docker Swarm.
See error
This occurs naturally as Docker Swarm does not respect depends-on from docker-compose as you intend.
Expected behavior
I am expecting the server container to down itself after a pre-defined limit of failed attempts contacting either the redis or mongo end-points.
If 5 backed-off retries (immediately, 0.5 sec, 1 sec, 2 sec, 4 sec) fail, the container should exit with error. It is the responsibility of the orchestration engine (swarm, kubernetes, etc) to respawn the container, which gives the other containers plenty of time to be functional and registered.
Describe the bug
If the
server
container starts before theredis
container (read: before the dns entry of theredis
container hits the DNS server), the server container will never resolve the IP of theredis
container and will result in an infinite loop and never resolving the DNS entry.To Reproduce
Steps to reproduce the behavior:
docker stack deploy checkmate.yml
within Docker Swarm.This occurs naturally as Docker Swarm does not respect
depends-on
from docker-compose as you intend.Expected behavior
I am expecting the
server
container to down itself after a pre-defined limit of failed attempts contacting either theredis
ormongo
end-points.If 5 backed-off retries (immediately, 0.5 sec, 1 sec, 2 sec, 4 sec) fail, the container should exit with error. It is the responsibility of the orchestration engine (swarm, kubernetes, etc) to respawn the container, which gives the other containers plenty of time to be functional and registered.
Screenshots
Work Around
docker service scale checkmate_server=0 && docker service scale checkmate_server=1
The text was updated successfully, but these errors were encountered: