Add k8s settings: prefer-closest-numa-nodes and max-allowable-numa-nodes#901
Merged
piyush-jena merged 2 commits intobottlerocket-os:developfrom Apr 16, 2026
Merged
Conversation
Signed-off-by: Piyush Jena <jepiyush@amazon.com>
218c5bf to
c4d27a6
Compare
mgsharm
approved these changes
Apr 10, 2026
vigh-m
reviewed
Apr 15, 2026
b7b20e9 to
5c36279
Compare
ytsssun
reviewed
Apr 16, 2026
arnaldo2792
reviewed
Apr 16, 2026
5c36279 to
3bde505
Compare
Add topologyManagerPolicyOptions rendering to kubelet-config templates: - prefer-closest-numa-nodes: GA in k8s 1.32+ - max-allowable-numa-nodes: GA in k8s 1.35 Signed-off-by: Piyush Jena <jepiyush@amazon.com>
3bde505 to
628d29b
Compare
Contributor
Author
|
tested all the changes one final time and handled all the comments. Ready to merge post another approval. |
vigh-m
approved these changes
Apr 16, 2026
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.
Issue number:
Related to # bottlerocket-os/bottlerocket#4750
Related to:
Description of changes:
Add 2 topology manager policy options:
max-allowable-numa-nodes- GA k8s-1.35+prefer-closest-numa-nodes- GA k8s-1.32+Testing done:
Enabled the following settings and rebooted the instance:
Then ran a pod with the following spec:
Its important that requests and limits are equal for both CPU and memory to ensure it is in the
GuaranteedQoS class for the CPU pinning as a result of thestaticpolicy to work properly.The assigned CPUs for this pod was 1,2,65,66.
The NUMA node ranges for this instances are:
node0: 0-31, 64-95
node1: 32-63, 96-127
All 4 CPUs belong to NUMA node0. The
prefer-closest-numa-nodespolicy worked as expected.For
max-allowable-numa-nodesI show the limits enforced by kubernetes are also applied here.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.