Working with Docker 1.12 and built in swarm mode.
We love love love it.
We want to apply a rolling update to services serially and would like for future tasks not to be scheduled while the container is updating (baked into swarm already) but additionally any active connection being serviced by that container to complete before the update is initiated… We have long running services involving file moves that could take many minutes (20 mins is even likely), we don’t want these to be interrupted while we update the service. Is there any way to wait for “outstanding” requests to complete before applying the update?
We explored node draining but that is a higher level than a service update and seems like a manual process.