[AXT-153] kueue, kai_scheduler: Add scheduling goodput prototype #26012
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.48) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 511 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.373
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #26012"
general
weight: 0.35
martavicentenavarro
What does this PR do?
Adds an experimental, off-by-default
collect_scheduling_goodputoption to the Kueue and KAI Scheduler checks, per the design-doc scheduling goodput. Each run, every GPU workload addselapsed time × requested GPUs(GPU-hours) to:gpu.scheduling.badput_time: the workload waits to become fully runnable. Tagged withreasonand the rawscheduler_reason.gpu.scheduling.fully_admitted_time: admitted with all pods ready (Kueue), or all active pods running (KAI).Goodput is
fully_admitted / (fully_admitted + badput)at query time. The metrics have no integration prefix. One series per workload (kueue_workload/kai_pod_group), also tagged withjob_scheduler,job_scheduler_queue,job_scheduler_workloadand, when known,gpu_type.reasonis one of six scheduler-independent categories:quota_or_capacity,placement_or_topology,configuration_or_request,preemption_or_reclaim,startup_or_system,other_or_unknown.AdmittedandPodsReady(waitForPodsReady); without it, nothing is submitted. Only the leader's instance submits.collect_workload_events/collect_podgroup_eventsfalse, as when the Cluster Agent sends the events.gpu_type(Kueue) comes from the flavors of the admitted Workload (nvidia.com/gpu.productnode label), else from the pods'nodeSelector/nodeAffinity.workloadsandresourceflavors; KAI pods and jobs.How you validated your changes
Motivation
Part of AXT-153. Events move to the Cluster Agent (datadog-agent #61005). Design doc.
Checklist before requesting review
<!--
The
pr-descriptionvalidation (Run Validations) fails until every item below is ticked andthe visible description (excluding HTML comments) is at most 3,000 characters. CI, the changelog,
and the QA label have their own checks. Request review only once all checks pass:
gh pr checks <PR> --repo DataDog/integrations-core --watch.-->
<!--
How to verify: run
gh pr diff <PR> --repo DataDog/integrations-core, review every changed line,and compare the final diff with the description above.
-->
<!--
How to verify: check the diff for relevant tests and run them as described in
AGENTS.md.-->
<!--
How to verify: run
gh api repos/DataDog/integrations-core/pulls/<PR>/commentsandgh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix eachfinding or reply with the reason no change is needed.
-->
<!-- Coding agents: never tick this item. Only the human author may tick it. -->
<!--
QA label: PRs that only change code owned exclusively by @DataDog/agent-integrations (see
.github/CODEOWNERS) always useqa/skip-qa, neverqa/required.-->
[AXT-153]: https://datadoghq.atlassian.net/browse/AXT-153?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ