Reputation: 255
I have been experimenting with blue green deployment in kubernetes
using nginx-ingress
. I created few concurrent http request to hit v1 version of my application. In the meanwhile I switched the router to point to v2 version of my application. As expected v2 version was serving the requests after the swap ,but what made me curious is that all the request were success. It is highly probable that there were some in-progress request in v1 while I made the swap. Why didn't such request fail?
I also tried the same by introducing some delay in my service so that the request take longer time to process.Still none of the request failed.
Upvotes: 1
Views: 854
Reputation: 54191
Usually in-flight requests are allowed to complete, just no new requests will be sent by the proxy.
Upvotes: 1