2nd-gen deploy failed with "Quota exceeded for total allowable CPU per project per region": each function is a Cloud Run service and the regional CPU-allocation quota is charged as the sum of (maxInstances × vCPU) across all functions. At maxInstances 20 × ~34 v2 functions = ~680 vCPU, over this new project's default (~560). Dropping to 5 → 170 vCPU, well under. 5 instances × ~80 concurrent requests still serves ~400 in flight — fine pre-launch. For production, request a Cloud Run CPU quota increase and raise this back up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dist | ||
| scripts | ||
| src | ||
| jest.config.js | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||