Skip to content

config(ops): restore backend-sync max_instances 30 -> 40 (drop margin G1) - #24329

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/backend-sync-cap-back-40
Nov 2, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/backend-sync-cap-back-40

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Problem and change

#24303 set backend/deploy/ops/prod.yaml cloud_run.backend-sync.max_instances to 30 for a gated apply. The lead
held the apply at 02:11Z, and it never ran: live is still 40. Leaving 30 in source means the next config-train
dispatch, for any reason, would apply it without the gates.

This PR puts the source back to 40 and the test_cloud_run_rightsizing_pins.py pin back to (5, 40). Live does not change.

Why the cap is dropped, not delayed (measured, ro-prod Cloud Monitoring, backend-sync)

hour requests/h avg instances max_request_concurrencies p95 latency p95
16–17Z 11-01 (before #24264) 133.4k 39.9 13.4 8.82 s
01–02Z 11-02 93.1k 33.3 18.4 12.01 s

#24264 removed the short (~2.4 s) deferred re-polls, so the remaining requests are long sync jobs. In-flight per
instance rose while instances fell 40 → 33 on their own. At concurrency p95 18–20 of containerConcurrency 20, a cap of
30 would queue work rather than trim idle capacity. The instance saving the cap targeted has already happened.

Validation

backend/test.sh with BACKEND_UNIT_TEST_FILE_LIST = test_cloud_run_rightsizing_pins.py, test_config_train.py,
test_drift_check.py: 88 passed (4 + 52 + 32), via bin/omi-heavy, with no GCP credentials. The bounded pre-push gate passed.

Rollback: revert this PR. Applying nothing either way: config-train is workflow_dispatch only.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

… G1)

#24303 set the source cap to 30 for a gated apply that never happened (lead
held it at 02:11Z). After #24264 removed the short deferred re-polls, sync runs
long jobs at max_request_concurrencies p95 18-20 of containerConcurrency 20 on
~33 instances, so a lower cap would queue work rather than trim idle capacity.
Live stays 40; this puts the source back so no config-train dispatch can apply
30 without the gates. Pins test_cloud_run_rightsizing_pins.py to (5, 40).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-02T02:17:56.179655Z
We couldn’t complete this review. Comment @codex review to try again.
2d0b692 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit a837298 into main Nov 2, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/backend-sync-cap-back-40 branch November 2, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant