Repository navigation
feat: queue scaler cutover shape - single OD HPA, floor 3 / cap 16 (f05065) - #23860
Merged
Merged
Conversation
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
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
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. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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%).
replicaCount4 → 3: the ratified batch floor (lead 114a22/724762; op1 readback 3 desired / 3 Ready on 10-28).batch-pipeline-pool's node maximum (3 → 16) in the same window.batch-pipeline-poolso the guaranteed floor and scale-out never depend on Spot (persistent L4 Spot stockout; Spot L4 bills above on-demand — N6 10-26).balancedPoolsstays 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=16remains 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
-spotdeployment; the adapter contract renders the single-pool cutover. Local targeted backend shard: 77 passed acrosstest_batch_pipeline_chart.pyandtest_monitoring_adapter_hpa_contract.py.Failure-Class: none
UI-Evidence: none -- reason: chart/docs/tests only; no web/admin/app paths