Docker Community Forums

Share and learn in the Docker community.

Delaying the service discovery of a newly assigned task

swarm

(Deanunnotech) #1

Our django service setup time is getting slower. I think it takes 10 seconds… So even with native blue-green deployment of Swarm makes the API response pending until the django service is ready. So in short some API response is 10 seconds when newly deployed.

Is there any solution in the docker? I’m thinking of delaying the service discovery on a newly assigned task. Maybe delay the traffic to be proxied to that newly assigned task by 10 seconds, is it possible?