An infrastructure team manages a production Cloud Run service named `data-processor` running in the `europe-west1` region. To mitigate cold start latency during bursty traffic windows while establishing strict cost controls, a Cloud Engineer is instructed to reconfigure the service to maintain at least 3 warm container instances, cap the maximum scaling limit to 25 container instances, and allow each instance to process up to 100 simultaneous requests. The change must be applied to the existing running service configuration without re-deploying a new container image. Which `gcloud` command should the engineer execute?
- gcloud run services update data-processor --min-instances=3 --max-instances=25 --concurrency=100 --region=europe-west1Answer
- Bgcloud run services update-traffic data-processor --min-instances=3 --max-instances=25 --concurrency=100 --region=europe-west1
- Cgcloud functions deploy data-processor --min-instances=3 --max-instances=25 --concurrency=100 --region=europe-west1
- Dgcloud run deploy data-processor --min-nodes=3 --max-nodes=25 --container-concurrency=100 --zone=europe-west1-a
Answer
Execute `gcloud run services update data-processor --min-instances=3 --max-instances=25 --concurrency=100 --region=europe-west1` to modify operational parameters on an existing Cloud Run service.
Updating operational settings like minimum instances, maximum instances, and per-instance concurrency on an existing Cloud Run service is performed using `gcloud run services update` with the `--min-instances`, `--max-instances`, `--concurrency`, and `--region` flags. This command creates a new revision with the updated operational configuration without requiring a new container image binary to be specified.
Step-by-Step Solution
Key Concept
Managing Cloud Run scaling bounds and concurrency via gcloud run services update