Complete the code to deploy a Cloud Function with minimum instances to reduce cold starts.
gcloud functions deploy my-function --runtime python39 --trigger-http --min-instances=[1]Setting --min-instances=1 keeps one instance warm, reducing cold start delays.
Complete the code to set the maximum instances to limit scaling and control cold start frequency.
gcloud functions deploy my-function --runtime python39 --trigger-http --max-instances=[1]Setting --max-instances=10 limits scaling to 10 instances, controlling cold start frequency.
Fix the error in the Cloud Run service configuration to reduce cold start latency by setting minimum instances.
gcloud run deploy my-service --image gcr.io/my-project/my-image --min-instances=[1]Minimum instances must be 1 or more to keep instances warm and reduce cold starts.
Fill both blanks to configure Cloud Run service with CPU always allocated and minimum instances to reduce cold starts.
gcloud run deploy my-service --image gcr.io/my-project/my-image --execution-environment=[1] --min-instances=[2]
Setting --execution-environment=gen1 keeps CPU allocated continuously, and --min-instances=1 keeps one instance warm to reduce cold starts.
Fill all three blanks to configure Cloud Function with memory, timeout, and minimum instances to optimize cold start behavior.
gcloud functions deploy my-function --runtime python39 --memory=[1] --timeout=[2] --min-instances=[3]
Setting memory to 128MB (minimum), timeout to 60s, and minimum instances to 1 helps reduce cold start delays.