-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[podresapi 3/3] topology-aware: use Pod Resource API hints if present. #420
base: main
Are you sure you want to change the base?
[podresapi 3/3] topology-aware: use Pod Resource API hints if present. #420
Conversation
603159e
to
544f53e
Compare
544f53e
to
5fb185a
Compare
/cc @pfl |
5fb185a
to
d539ff4
Compare
494fdd3
to
72bfdfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since NodeResourceTopology can be disabled as well, should we extend this line to check if the NodeResourceTopology=true
?
72bfdfc
to
33810b8
Compare
Add configuration for the agent itself. Currently the only control enables access to Node Resource Topology Custom Resources and it is on by default. Update the agent to honor its configuration. Signed-off-by: Krisztian Litkey <[email protected]>
Add support for tapping into the kubelet's pod resource API to query extra information about resources assigned to pods and containers. Use such a new client to expose agent functions for listing and querying pod resources, both synchronously and asynchronously. Signed-off-by: Krisztian Litkey <[email protected]>
Try querying Pod Resource API and generate extra topology hints using container device assignments listed there. Signed-off-by: Krisztian Litkey <[email protected]>
Bind-mount kubelet pod-resources directory read-only to plugin daemonset, to provide access to kubelet pod-resources socket. Signed-off-by: Krisztian Litkey <[email protected]>
Add functions for resolving partial, NUMA-only topology hints to fully defined CPU-specific ones using a sysfs instance. Signed-off-by: Krisztian Litkey <[email protected]>
Resolve potential partial NUMA-only topology hints to full CPU hints. Signed-off-by: Krisztian Litkey <[email protected]>
Update docs with a brief mention of how to enable topology hints based on Pod Resource API queries. Make mock tests compile again. Signed-off-by: Krisztian Litkey <[email protected]>
33810b8
to
d05b4e1
Compare
Let's leave that for another PR. There are a few other similar things we could then take care of in the same PR, for instance not updating policy metrics if their collection is not enabled. |
This patch series adds handling for extra topology hints acquired from the kubelet's Pod Resource API. If any such hints are found, they are fully resolved (from NUMA-only hints to cpuset-specific ones), before taken into account.