Repository navigation
feat(model-manager): add cpu-pinning-operator CPU policy - #102
Draft
kwisniewski98 wants to merge 2 commits into
Draft
kwisniewski98 wants to merge 2 commits into
kwisniewski98 wants to merge 2 commits into
Conversation
intel/cpu-pinning-operator runs the NRI balloons plugin and pins model pods from its admission webhook. Under this policy model-manager renders no balloon annotation and runs no placement pre-flight; the operator's capacity check applies. Auto-detection picks it when the cluster has BalloonsClusterConfig/cluster. llm_services validate warns when the policy is set but the operator is not installed. Toolkit Manager sets the policy with kubernetes_cpu_policy: cpu-pinning-operator. Signed-off-by: kwisniewski98 <krzysztof2.wisniewski@intel.com>
The CPU Pinning Operator puts any pod that requests a device in its balloon-device type, but only one whose CPU request equals its limit in whole cores. Under this policy (asked for, or the operator detected) GPU runtimes now keep a whole-core CPU limit and carry the policy annotation; every other policy still renders GPU pods without a CPU limit. The cores are dedicated but not steered to the GPU's NUMA node unless the kubelet runs the alpha KubeletPodResourcesGet gate. Signed-off-by: kwisniewski98 <krzysztof2.wisniewski@intel.com>
kwisniewski98
added a commit
to kwisniewski98/toolkit-manager
that referenced
this pull request
Nov 30, 2026
…; pin GPU pods Reserved pool: drop cpu_pinning_operator_ht_sibling_policy and read nri_deployment_profile / nri_reserved_cpu_list, as nri-balloons does: - siblings (default): physical cores for models, hyperthread siblings reserved - minimal | standard | observability | full: 8 | 12 | 16 | 20 CPUs reserved, models may get hyperthreads - nri_reserved_cpu_list: that many CPUs (the operator takes a count) On OpenShift the chart overlay's measured sizing is no longer applied, so the profile decides there too; its SCC and reserved-namespace settings stay. GPU: cpu_pinning_operator no longer requires kubernetes_accelerator: cpu, and preflight no longer downgrades this policy to best-effort on GPU clusters. The operator pins GPU pods in its balloon-device type (needs model-manager to give them a whole-core CPU limit, intel/inference-toolkit#102). Signed-off-by: kwisniewski98 <krzysztof2.wisniewski@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
cpu-pinning-operatoras a fourth CPU policy, next tonri-balloons,kubelet-staticandbest-effort. intel/cpu-pinning-operator runs the same NRI balloons plugin, but its admission webhook pins the pod. Under this policy model-manager:main/kserve-containerand reads the span from--tensor-parallel-size. The pod only carriescpu-policy.model-manager.io/type: cpu-pinning-operator.--cpu-policy, byMM_CPU_POLICY, or by auto-detection when the cluster hasBalloonsClusterConfig/cluster. This check runs after the kube-system NRI DaemonSet check.GPU pods are pinned too. The operator puts any pod that requests a device in its
balloon-devicetype, but only if the CPU request equals the limit in whole cores. Under this policy, GPU runtimes (vllm-cuda,vllm-xpu) keep a whole-core CPU limit and carry the policy annotation. The policy counts when it is set by--cpu-policyorMM_CPU_POLICY, or when the operator is detected. Every other policy still renders GPU pods without a CPU limit (Burstable), as before. Those cores are dedicated, but not steered to the GPU's NUMA node unless the kubelet runs the alphaKubeletPodResourcesGetgate. Upstream advises leaving that gate off.Before this change,
MM_CPU_POLICY=cpu-pinning-operatorloggedInvalid MM_CPU_POLICYand fell back tobest-effort.llm_servicesvalidate now also warns when the policy is set but the operator is not installed. Docs (docs/reference/cpu-pinning.md,docs/configuration/configuration.md) and the policy comments list the new value.Related PRs / merge order
kubernetes_cpu_policy: cpu-pinning-operator).rev: mainof this repo.Tests
python -m pytest -q model_manager/tests: 614 passed.MM_CPU_POLICYand by auto-detection, plus the manifest annotations.cpu-pinning-operator, none undernri-balloons.deviations.ansible-lint --skip-list name,var-naming,fqcn,yaml,jinja,key-order roles/: passed (0 failures).Limitations / follow-up
cpu: autotakes the category default, as withkubelet-static.