I have a stack with 10 application containers with frontend nginx . While deploying new application container images in the stack i see ~1-2% failed requests if i run a apachebenchmark or gatling test against it . Around 2 requests fails if i send ~100 req/sec during deployment .
While going through the logs it seems like the difference is just ~1-2ms for the failure . Nginx sends the request & swarm take the application container down & nginx gives 502 error .
Error log (see the response time - 0.002) -
23 Mar 2017 11:07:35.047 192.168.50.68 - - [23/Mar/2017:05:37:34 +0000] "GET http://dev-hapdocker-01/feeds HTTP/1.1" 502 173 "-" "-" 0.002- Context
I suspect that this can be an issue if your machine is bit on slower side .
Let me know if i am missing something . Just curious to know how is the design made for swarm mode during rolling updates or deployments, do they say that it's zero downtime? (I have enabled all the healthchecks) .