We've been running Google Cloud Run for a little over a month now and noticed that we periodically have cloud run instances that simply fail with:
The request failed because the HTTP connection to the instance had an error.
This message is nearly always*
proceeded by the following message (those are the only messages in the log):
This request caused a new container instance to be started and may thus take longer and use more CPU than a typical request.
*
I cannot find, nor recall, a case where that isn't true, but I have not done an exhaustive search.
A few things that may be of importance:
- Our concurrency level is set to 1 because our requests can take up to the maximum amount of memory available, 2GB.
- We have received errors that we've exceeded the maximum memory, but we've dialed back our usage to obviate that issue.
- This message appears to occur shortly after 30 seconds (e.g., 32, 35) and our timeout is set to 75 seconds.