'Does Cloud Run keep pre-existing connections open when a revision's traffic percent is set to 0?
If I have a Cloud Run revision (let's call it revision A) that's serving 100% of traffic, and I swap 100% of traffic to another revision (revision B), will in-flight connections that were being served by revision A be killed immediately, or will they have an opportunity to finish?
Solution 1:[1]
Cloud Run will continue to handle on-going requests on the existing instances of the old revision. The instances on the old revision will only shutdown once all requests are handled and be idle for about 15 minutes. Only the new requests will be routed to the new revision.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
