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
When deploying/redeploying service instances are killed causing current operations and any long running tasks to end. Also causing connection interruption from the client side. Is it possible to use draining in coordination with load balancer(like traefik)?
Steps to reproduce the issue:
Redeploy a service
What happens:
Error response to client while restarting tasks and killing long running tasks.
What should happen:
1- Create new tasks and redirect new traffic only to new tasks
2- Mark the old tasks as draining and prevent any new connections
3- Wait a certain time(couple minutes, hopefully configurable)
4- End old tasks
Additional information (e.g. docker version, cluster setup,...):
The text was updated successfully, but these errors were encountered:
Also tried to change load balancing to swarm using traefik.docker.lbswarm=true
But this was not helpful because i could not make lbswarm work with traefik, all the requests ended up at the same task.
Then to make things a bit more robust i added health-check to traefik
Currently it is ok, will work on zero downtime later.
And before forgetting swarmpit is helping me a lot, thanks to all who participated in this wonderful application :)
Description
When deploying/redeploying service instances are killed causing current operations and any long running tasks to end. Also causing connection interruption from the client side. Is it possible to use draining in coordination with load balancer(like traefik)?
Steps to reproduce the issue:
What happens:
Error response to client while restarting tasks and killing long running tasks.
What should happen:
1- Create new tasks and redirect new traffic only to new tasks
2- Mark the old tasks as draining and prevent any new connections
3- Wait a certain time(couple minutes, hopefully configurable)
4- End old tasks
Additional information (e.g. docker version, cluster setup,...):
The text was updated successfully, but these errors were encountered: