[Feature]: Orchestration of cluster partitioning workflow
维护者通常 1 天内回复
@yansun1996 已经在做这个了。
开始于 2025年10月22日。
评估
这个 Issue 还没有评估数据。
描述
Suggestion Description
Feature request: integrate GPU partitioning plans into AMD GPU Operator
Summary
- Introduce cluster-scoped
PartitioningPlanandNodePartitioningcustom resources to orchestrate AMD GPU partitioning using DCM profiles. - Add controllers that safely drain, taint, label, verify, and restore nodes while coordinating rollouts and surfacing detailed status/conditions.
- Leverage existing AMD GPU Operator primitives (DCM ConfigMap,
amd-dcmtaint,dcm.amd.com/gpu-config-profilelabel,amd.com/*allocatable resources) to provide an end-to-end partition management workflow.
Background & Motivation
Today, Device Config Manager supports applying static partition profiles, but fleet operators still need to script the manual parts: selecting nodes, draining workloads, enforcing serial rollouts, waiting for device plugin health, and validating allocatable GPUs. Introducing PartitioningPlan/NodePartitioning controllers would automate that lifecycle so platform teams can request multi-node GPU partitioning with a single CR.
Proposed Solution
API additions
PartitioningPlan(cluster scope): High-level rollout CR, which links one or more DCM profiles to a set of nodes via label selectors. Status tracks phase, per-node summaries, and typed conditions for UIs/alerting.NodePartitioning(cluster scope): Per-node work item owned by a plan. Responsible for orchestrating the partitioning for a single node.PartitioningProfileSpec: Inline DCM profile metadata with optional expected allocatable resources to assert after reconciliation, e.g. expectamd.com.com/cpx_nps4: 63
Controller behavior
- PartitioningPlan controller
- Discovers matching nodes, filters control plane hosts by default, and rejects ambiguous selector overlaps
- Blocks conflicting ownership when another plan targets the same node
- Projects desired
NodePartitioningspecs, computing deterministic hashes of the requested profile for drift detection - Aggregates per-node phase counts, emits user-facing conditions (PlanReady, RolloutProgressing/Completed/Degraded, Paused), and maintains a lightweight node status cache for dashboards
- Cleans up stale child CRs when nodes fall out of scope, ensuring serialized ownership
- State machine drives taint/cordon, drain, DCM profile application, operator wait, verification, and cleanup
- Dry-run mode to see the
NodePartitioningresources that would get created, without impacting the driver - Each phase updates strongly-typed conditions (NodeCordoned, NodeTainted, DrainCompleted, ProfileApplied, OperatorReady, Verified) and only advances once prerequisites succeed
- Verification asserts the DCM label and
amd.com/*allocatable availability before untainting/uncordoning and marking success - Watches node events and allocatable resource deltas to retry automatically when the operator surfaces readiness
Custom Resource Examples
PartitioningPlan (apiVersion: amd.com/v1alpha1)
apiVersion: amd.com/v1alpha1
kind: PartitioningPlan
metadata:
name: mi300-partitioning
spec:
dryRun: false
rollout:
maxParallel: 1 # run at most one partitioning process at a time
maxUnavailable: 1 # out of the targeted nodes, at most one can be unavailable at any time
excludeControlPlane: true # if false, potentially include control plane nodes, default to true
rules:
- description: "Partitioned MI300X nodes"
selector:
matchLabels:
amd.com/gpu.product-name: AMD_Instinct_MI300X_OAM
profile:
expectedResources:
amd.com/cpx_nps4: "63"
dcmProfileName: "cpx"
Acceptance Criteria / Work Items
- Import the CRD definitions and generated deepcopy code into the AMD GPU Operator repo.
- Add manager registration, field indexers, and RBAC for both controllers.
- Package reconcilers with operator images and expose a feature flag for partitioning.
- Document the workflow, including dry-run semantics and example plans, in the operator docs.
- Provide automated tests (unit ) covering selector conflicts, hash drift, and the state machine transitions.
- Chainsaw tests for running end-to-end tests on real clusters
- Any larger scale (>3 worker node) clusters to test on?
Operating System
No response
GPU
No response
ROCm Component
No response
- 主要语言
- Go
- 星标
- 110
- 派生
- 63
- 平均合并
- 4 天 1 小时
- 30 天内合并 PR
- 5
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ROCm/gpu-operator 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
ROCm/gpu-operator#688 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
ROCm/gpu-operator#679 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 62/100
ROCm/gpu-operator#638 ·
维护者通常 1 天内回复
-
[Issue]: Cannot build image for Ubuntu 26.04可能已有人在做 @dhhoang 于 20 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 62/100
ROCm/gpu-operator#631 · 1 条评论 ·
维护者通常 1 天内回复
-
[Issue]: multiple critical and security CVEs found in the images released with 1.5.1可能重新可做 @yansun1996 于 76 天前认领,目前没有进行中的 PR。 未关闭
ROCm/gpu-operator#629 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 ROCm/gpu-operator 的全部 Issue
相似的 Issue
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404未关闭documentation
难度 1/5 1 小时以内 新手友好度 88/100
ClickHouse/clickhouse-go#2185 ·
维护者通常 1 天内回复
-
tagvalue.Read fails with "token too long" on lines over 64 KiB可能已有人在做 @G26karthik 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
spdx/tools-golang#319 ·
-
area: community priority: p1 size: s type: docs
难度 2/5 1-3 小时 新手友好度 76/100
romanitalian/paytriage#23 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 79/100