Scale up salvo feature - multiple scale ups per single CA loop #9606
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 431 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9606"
general
weight: 0.35
x13n
The Scale Up Salvo feature allows the Cluster Autoscaler to trigger multiple consecutive scale-up evaluations and cloud provider resize requests back-to-back within a single main loop iteration. This eliminates the multi-minute delay of legacy behavior, where CA had to wait for subsequent loop iterations to handle a large queue of unschedulable pods.
The legacy single scale up per CA loop is still the default behavior, this PR only introduces a new flag (false by default) which enabled the new multi-scale-up per loop behavior.
How it works
1. The Salvo Loop: CA enters an execution loop that sequentially calls the standard scale-up evaluation (runSingleScaleUp) for the unschedulable Pods from the chosen scale up pod shard.
2. Backlog Filtering: In each iteration, the pods that successfully trigger a node group scale-up are filtered out of the remaining unschedulable pods set.
3. Cluster Snapshot Sync: The newly triggered upcoming nodes are dynamically injected into the in-memory ClusterSnapshot (similarly to upcoming nodes at the beginning of CA loop), and the triggering pods are virtually scheduled onto them. This ensures subsequent iterations in the loop make scheduling decisions based on a highly accurate future state of the cluster.
4. Time Budget Guard: The loop continues until all pods are scheduled or the configured time budget (e.g., --salvo-scale-up-budget, default 1min) is exhausted, preventing the salvo loop from starving other parts of the logic.
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR introduces the Scale Up Salvo feature to enable the Cluster Autoscaler to perform multiple consecutive scale-up evaluations and cloud provider resize requests within a single main loop iteration, effectively reducing scale-up latency and time-to-provision for large numbers of unschedulable pods.
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
Does this PR introduce a user-facing change?
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
-->
``
release-noteA new experimental salvo-scale-up flag can be enabled to allow multiple scale-ups in a single CA loop. Additional --salvo-scale-up-budget flag can be used to configure the maximum time CA spends on subsequent scale ups in a single CA loop.
docs
``