Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Whats the min and max idle time for a Cloud Run Function instance?

How long does a Cloud Run function instance stay idle? Is there any minimum and maximum time mentioned in the Cloud Run function doc? I could not find such information in the Doc. Also, is there any way to control this idle time?

Solved Solved
0 1 245
1 ACCEPTED SOLUTION

Hi @samiul-azam,

Welcome to the Google Cloud community!

The Google Cloud Functions documentation on configuring minimum instances mentions that Cloud Functions can be configured to have a minimum number of instances. These instances are kept warm to handle requests without delay, preventing cold starts.

However, the documentation doesn't specify an exact maximum or minimum idle time for a Cloud Run function instance. In fact, the idleness time has no fixed length and may vary under different conditions.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

View solution in original post

1 REPLY 1

Hi @samiul-azam,

Welcome to the Google Cloud community!

The Google Cloud Functions documentation on configuring minimum instances mentions that Cloud Functions can be configured to have a minimum number of instances. These instances are kept warm to handle requests without delay, preventing cold starts.

However, the documentation doesn't specify an exact maximum or minimum idle time for a Cloud Run function instance. In fact, the idleness time has no fixed length and may vary under different conditions.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Top Labels in this Space
Top Solution Authors