← Back to Pull requests

:book: solutions: add workload-aware topology gang scheduling #1840

Open
unknown opened this pull request with 229 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 20, 2026 19:42 UTC
Author

<!--
Thanks for creating a pull request!

If this is your first time, please make sure to review CONTRIBUTING.MD.

Please copy the appropriate :text: or icon to the beginning of your PR title:

:sparkles: ✨ feature
:bug: 🐛 bug fix
:book: 📖 docs
:memo: 📝 proposal
:warning: ⚠️ breaking change
:seedling: 🌱 other/misc
:question: ❓ requires manual review/categorization

-->

Summary


Add a solution that pairs OCM Placement with Kubernetes v1.37 Workload Aware Scheduling so topology-constrained gangs only land on clusters that can satisfy them.

A gang PodGroup with a topology key stays Pending forever on a cluster whose nodes lack that label. Publishing each spoke's node topology as ManagedCluster labels lets the hub filter clusters up front, while the spoke kube-scheduler places every pod of the gang in one domain.

The demo covers JobSet v0.13 (rack and zone gangs), plain batch/v1 Jobs via the WorkloadWithJob gate, and LeaderWorkerSet v1.0, with kind configs for a rack-labeled and a zone-labeled spoke, setup/demo/cleanup scripts, and work-agent RBAC for JobSet and LWS.

Related issue(s)

Fixes #

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

New Features
Added a runnable walkthrough for scheduling JobSets, Jobs, and LeaderWorkerSets across clusters, with rack- and zone-based placement and workload status feedback.
Added setup and cleanup scripts for the demo environment, plus sample cluster configurations and deployment scenarios.
Documentation
* Added a guide covering prerequisites, environment setup, demo scenarios, behavior when topology labels are unavailable, adapting the examples to other clusters, and cleanup.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 229 lines (+171 / -58) across 2 files Reviewer: kannon92 Review duration: 425m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 229 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.325
Real PR Conversation Timeline
1 comments
"Review active on #1840"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.0% (MEDIUM) · Higher = larger blast radius
37.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.7% · Safe to merge
19.7%