What this thread does
Do first: run gcloud run services describe SERVICE and inventory the per-instance database pool before selecting --concurrency and service-level --max.
Short answer
As of November 2026, use current Cloud Run docs; service-level maximum instances became GA on October 6, 2025. Set a hard pool ceiling in the application, then choose concurrency and instances together. Cloud Run maximums can be temporarily exceeded. Scaling limits.
Choose / don't choose
- Service-level maximum: choose for a shared service budget through traffic splits; don't rely on one revision's limit to bound every revision.
--maxchanges without a new revision. CLI. - Revision maximum: choose only for a revision-specific ceiling; don't multiply the same DB budget across old and new revisions. Traffic splits distribute service-level capacity proportionally. Maximum settings.
- Minimum zero: choose when cold-start delay is acceptable; choose warm capacity only from a latency requirement and its idle bill. Minimum settings.
Not for: Lambda networking to RDS; see aws-lambda-rds-vpc-task-timed-out-network-path.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
--concurrency | 1 documented conservative example; increase only while request demand fits pool/memory capacity; documented default 80 | Current Cloud Run; revision setting | Concurrency |
--max | 3 documented initial cost-safety suggestion only if database budget allows; otherwise lower to budget-derived positive M | Current Cloud Run; service setting | Limit guidance, CLI |
--max-instances | Positive revision ceiling; default removes explicit revision value; not equivalent to service --max | Current Cloud Run; revision setting | CLI |
--min | 0 default to permit scale-to-zero; 1 warm instance only when startup latency justifies cost and budget | Current Cloud Run; service setting | Minimum settings |
--min-instances | default clears revision minimum; prefer service minimum rather than combining both | Current Cloud Run; revision setting | CLI, minimum guidance |
Order of operations
1. Determine B, count every application process pool and reserve admin/recovery capacity. Reuse one bounded pool per process instead of opening a new persistent connection per request. Cloud SQL. 2. Deploy explicit concurrency with the intended pool limit; set service --max within the inequality. Inspect effective service and revision limits and traffic splits, including tagged revisions. Tagged revisions outside the split do not count toward the service ceiling. Maximum settings. 3. Set service --min from cold-start latency and idle-cost measurements. Under a disposable representative load, inspect instance count, DB sessions, pool waits and request latency together; then repeat during a rollout. Autoscaling. 4. Leave headroom for old instances draining requests, traffic surges and maintenance replacements. If the DB requires a strict global ceiling, enforce it through a shared connection pooler/admission boundary as well as instance settings. Autoscaling.
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
The request was aborted because there was no available instance. | HTTP 429: | Compare instance count and DB pool waits; optimize work/admission, then raise ceiling only within DB budget; retry eligible requests with backoff | Troubleshooting |
The request was aborted because there was no available instance | HTTP 500: traffic bursts outrun cold starts | Correlate aborted requests and instance metrics; configure minimum instances or tune concurrency, then use exponential backoff for retries | Troubleshooting |
Prefer service cap, reserve overlap and enforce pool limits; reduce admission when DB headroom shrinks.
Missing
- The linked source does not confirm: A warm minimum does not bound total DB connections.
- The linked source does not confirm: Oscar Rosner's October 12, 2021 thesis, sections 4.2–4.3, profiles one instance separately from autoscaling and reports different cold/warm scaling behavior. Its historical WebSocket measurements do not establish current database pool sizing.
- The linked source does not confirm: Retained idle instances can keep database connections.
- The linked source does not confirm: Derived budget: let B be database connections available to this service after reserving other clients, P the total pool maximum per instance across all processes/sidecars, and R additional connections reserved for rollout/replacement. Choose M with
M * P + R <= B; if P is unbounded, first bound it. If every active request can hold d connections and background work holds b, choose C withC * d + b <= P, or deliberately queue pool acquisition with a bounded timeout. These are planning inequalities, not Cloud Run defaults. Cloud SQL connection management. - Actual B, P, per-request demand, latency objective and traffic shape are unspecified; no universal concurrency or maximum value follows. Documentation gives different pending-queue windows across pages, so no queue-wait SLA is assumed here.
Checked
2026-11-12; current docs, November 2026. Sources read: Cloud Run concurrency/max/min/limits/autoscaling/troubleshooting, gcloud reference, dated release notes, Cloud SQL guide and Rosner thesis. No Cloud Run or DB commands executed.
Started from a post by @Google Cloud, packaged by the editor. Original post