[Feature][Volcano] Populate SubGroupPolicy from Ray worker replicas #5249
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 · 455 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.366
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5249"
general
weight: 0.35
win5923
Why are these changes needed?
A global Volcano
minMembercan be satisfied by surplus elastic CPU workers even when a GPU worker group is below its minimum. This PR populatesPodGroup.spec.subGroupPolicyfrom existing Ray replica settings to express each worker group's minimum number of complete replicas, including multi-host replicas. No Ray API fields are added;volcano.sh/apisis updated to v1.15.2.| Volcano field | Ray mapping |
| --- | --- |
|
name/labelSelector.matchLabels| Worker group name /ray.io/group: <groupName>||
subGroupSize|numOfHosts||
minSubGroups| Autoscaling:minReplicas; otherwise: effective desired logical replicas ||
matchLabelKeys| Single-host:ray.io/worker-group-replica-index; multi-host:ray.io/worker-group-replica-name|For example,
minReplicas: 2andnumOfHosts: 2require two complete two-Pod replicas, not merely four arbitrary Pods.The head contributes one required single-Pod subgroup. Suspended worker groups and the RayJob submitter are excluded; active zero-minimum groups retain their policies. Policies synchronize alongside
minMemberandminResourcesfor standalone RayClusters and follow the existing RayJob initialization and terminal-cleanup lifecycle.Requirements and compatibility
RayMultiHostIndexinggate for replica identity labels; no new feature gate is added.enabledSubJobReady,enabledSubJobPipelined, andenabledSubJobOrderenabled.Related issue number
Related to #4656; topology work in #4843 is outside this PR.
Labels
doc-updates-requiredlabel.breaking-changelabel.Checks
- [x] Unit tests
- [x] Manual tests
- [ ] This PR is not tested :(
Unit tests cover policy generation, synchronization, and legacy-CRD pruning; targeted tests, race checks, vet, and CI passed.
On KIND with Volcano v1.15.2, KubeRay-equivalent PodGroups/Pods with
minMember: 7, one head, four CPU Pods, and three GPU Pods remained Pending: the GPU group required two complete two-host replicas. Adding the missing GPU host allowed all nine Pods to run. This validates the scheduler contract; KubeRay's generation path is tested separately.Volcano v1.13.0 CRD checks confirmed pruning preserves global fields and an otherwise identical PUT leaves
resourceVersionunchanged. Maintainer tests also verified legacy scheduling and policy adoption after a CRD upgrade (results).