Skip to content

feat: queue scaler cutover shape - single OD HPA, floor 3 / cap 16 (f05065) - #23860

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/accel3g-queue-scaler-od3-16
Oct 28, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/accel3g-queue-scaler-od3-16

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Reworks the dormant queue scaler (#23824, merged disabled) into the qualified cutover shape accepted for the 100% capacity plan: demand-driven, min 3 / max 16, OD-first (lead f05065; David b38eea — peak OK today, skip 50%).

  • replicaCount 4 → 3: the ratified batch floor (lead 114a22/724762; op1 readback 3 desired / 3 Ready on 10-28).
  • Latent autoscaling budget 2/24 → 3/16. Stays disabled in values; enabling happens only in op1's reviewed qualification window during the 25% soak, where a real scale-up doubles as the scheduling proof and op1 raises batch-pipeline-pool's node maximum (3 → 16) in the same window.
  • OD-first placement: the worker pins to batch-pipeline-pool so the guaranteed floor and scale-out never depend on Spot (persistent L4 Spot stockout; Spot L4 bills above on-demand — N6 10-26).
  • balancedPools stays machinery-only; the chart rejects it in production when the stage, values namespace, or Helm release namespace marks production, and the docs now name the single OD HPA as the cutover. Going above 16 is a second, separately qualified step; never pre-provision.
  • targetQueuedUnitsPerWorker=16 remains provisional until op1 benchmarks useful completions/queue latency on the qualified worker.

Tests: environment/policy pins move to replicas 3; the balanced design test uses a non-production explicit even budget (2/24); production values reject balanced mode at min=3 or min=4 even with overrides, and a production Helm release namespace rejects balanced mode when chart values say dev. Production cutover remains a single OD HPA at min3/max16, pinned to OD with no -spot deployment; the adapter contract renders the single-pool cutover. Local targeted backend shard: 77 passed across test_batch_pipeline_chart.py and test_monitoring_adapter_hpa_contract.py.

Failure-Class: none
UI-Evidence: none -- reason: chart/docs/tests only; no web/admin/app paths

View guided diff Turn on auto-fix

Rework the merged-but-dormant queue scaler (#23824) into the qualified
cutover shape the lead accepted for the 100% capacity plan (f05065, David
b38eea: peak OK today, skip 50%): demand-driven, min 3 / max 16, OD-first.

- prod values: replicaCount 4 -> 3 (the ratified floor, lead 114a22/724762;
  op1 readback 3 desired / 3 Ready) and the latent autoscaling budget
  2/24 -> 3/16. The worker pins to batch-pipeline-pool (on-demand) so the
  guaranteed floor and scale-out never depend on Spot: the L4 Spot stockout
  is persistent and Spot L4 bills above on-demand (N6 10-26).
- balancedPools stays machinery-only: the template already refuses odd or
  undersized totals, so the production 3/16 budget refuses it by design;
  the docs now name the single OD HPA as the cutover.
- Above 16 replicas is a second, separately qualified step; op1 raises the
  OD node-pool maximum (3 -> 16) in the same reviewed qualification window
  that enables the scaler, using a real scale-up during the 25% soak as the
  scheduling proof.
- targetQueuedUnitsPerWorker=16 stays provisional until op1 benchmarks
  useful completions and queue latency on the qualified worker.

Tests: the environment/policy pins move to replicas 3; the balanced design
test gets an explicit even budget (2/24) so it keeps proving the machinery;
new cases pin the production cutover (single OD HPA min3/max16, OD
nodeSelector, no -spot deployment) and the odd-floor balanced refusal; the
HPA-adapter contract test renders the actual single-pool cutover.

Failure-Class: none
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

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 ✅ Completed 2026-10-28T09:16:48.593165Z 99db51a New commits
ℹ️ 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.

@Git-on-my-level
Git-on-my-level merged commit 61cb96d into main Oct 28, 2026
60 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/accel3g-queue-scaler-od3-16 branch October 28, 2026 11:28
Git-on-my-level added a commit that referenced this pull request Oct 30, 2026
## Change

Enable the existing production OD-first demand scaler in the
batch-pipeline-worker chart values. The already-merged #23860 sets the
worker budget to min 3 / max 16; balanced pools remain disabled.

With autoscaling enabled, the chart keeps `spec.replicas` in the
Deployment manifest and uses Helm `lookup` to carry forward the live
count on upgrades. The first HPA install therefore keeps the existing
count instead of allowing the API to default it to 1; later chart
upgrades also preserve the HPA's current scale. Fresh installs and
offline renders use `replicaCount`.

## 25% soak sequence

- This PR does not gate paired-25 entry.
- Lead merges this PR only after the paired-25 entry and its packet are
consumed.
- After the merge, op1 deploys the pinned image digest cfb0ef through
.github/workflows/gcp_diarizer.yml with service=batch-pipeline-worker
and env=prod; no rebuild.
- op1 raises batch-pipeline-pool node-pool max to 16 and leaves min at
3.
- Use the 25% soak as the live HPA scale-up qualification. Confirm the
HPA reacts before moving to 100%.

Existing STOP and rollback guards remain authoritative.

## Local validation

- `backend/test.sh` with
`BACKEND_UNIT_TEST_FILE_LIST=backend/tests/unit/test_batch_pipeline_chart.py`:
39 passed.
- `make preflight` on the `58a123e` tree (merge base `ebd6553`): 35
checks passed.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/23891?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23891?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23891&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
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