3 ms·
How can zero downtime deploys be done with Docker? I had to write my own custom blue/green deploy script to hot reload traffic to proxy_pass definitions in ngi
by MuffinFlavored 7y ago
How can zero downtime deploys be done with Docker?
I had to write my own custom blue/green deploy script to hot reload traffic to proxy_pass definitions in nginx upstream configs since I don’t use Docker.
- jeremija 7y agoIIRC, if you use docker swarm it wil handle the routing for you. So if an app is running on port 8080 on two swarm nodes, if you access port 8080 on each node, you might actually be accessing another node. Since docker swarm knows if an instance is down, it will know to not use that instance. See https://docs.docker.com/engine/swarm/ingress/ https://docs.docker.com/engine/swarm/ingress/
- Axsuul 7y agoI run on Docker Swarm and there are hiccups as one container goes up and another goes down during deployment.
- tecleandor 7y agoI think you can try a tool like Envoy for doing routing between versions plus some other custom stuff.
- MuffinFlavored 7y agoAt my job, the devops team had to write some kind of special program that maps whether a Marathon/Mesos instance is up when dealing with Envoy. Not sure if the same is required for just plain Docker?