Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/service-min-instances-runbook.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the service-level minimum-instances runbook command: the flag is --min; --min-instances would set the revision-level minimum the runbook itself warns against.
12 changes: 10 additions & 2 deletions docs/migration/cloud-run-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,22 @@ Values measured and justified in
instance alive per accumulated `stage3-*` tag:

```bash
# NOTE: the flag is --min, NOT --min-instances. --min-instances sets the
# REVISION-level minimum — the per-tag cost bomb this section warns about.
# --min requires a recent gcloud; older SDKs (e.g. 461) lack it — fall back
# to exporting the service YAML, adding metadata annotation
# run.googleapis.com/minScale: "1" (service metadata, NOT spec.template),
# and `gcloud run services replace` (which needs the Cloud Resource
# Manager API enabled on the project).
gcloud run services update policyengine-api \
--project policyengine-api --region us-central1 \
--min-instances 1
--min 1
```

**When:** once, immediately after the Stage 3 PR merges — before evaluating the
Stage 3 exit gates (the idle-readiness gate cannot pass without it) and before any
public traffic. **Verify** it took, and re-verify during ramp incident response:
public traffic. Done 2026-07-08 via the YAML-replace fallback. **Verify** it took,
and re-verify during ramp incident response:

```bash
gcloud run services describe policyengine-api \
Expand Down
Loading