Skip to content

Operator to enable reporting of per-NUMA-zone compute resources

License

Notifications You must be signed in to change notification settings

shajmakh/numaresources-operator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NUMA Resources Operator

Operator to allow to expose the per-NUMA-zone compute resources, using the RTE - resource topology exporter. The operator also takes care of deploying the Node Resource Topology API on which the resource topology exporter depends to provide the data. The operator provides minimal support to deploy secondary schedulers.

deploying using OLM

The currently recommended way of deploying the operator in your cluster is using OLM. OLM greatly simplifies webhook management, which the operator requires. Assuming you can push container images to a container registry and you are in the root directory of this project, a deployment flow can look like:

  1. fix environment variables as per your need. You will most likely need to override VERSION REPO CONTAINER_ENGINE
  2. build and upload the operator container image: make container-build container-push
  3. build and upload the manifest bundle container image: make bundle bundle-build bundle-push
  4. leverage operator-sdk to deploy the container: operator-sdk run bundle ${REPO}/numaresources-operator-bundle:${VERSION}. Note the build procedure typically downloads a local copy of operator-sdk in bin/ which you can reuse

For further details, please refer to the operator-sdk documentation

roadmap

The NUMA Resources operator is meant to have a limited lifetime, because all the operands it manages have a path towards integration in core k8s or towards replacement with other established components:

  1. The NodResourceTopology API is meant to be proposed to be accepted among the k8s APIs
  2. The ResourceTopologyExporter is meant to be replaced by nfd-topology-updater, part of the Node Feature Discovery project, and managed by the nfd-operator
  3. The out-of-tree scheduler plugin is meant to be proposed to be accepted in the k8s core repo; for the mid-term, it should be managed by the secondary-scheduler-operator.

Once all the components are merged or replaced, we plan to extract the testsuite, and then to deprecate and dissolve the NUMA Resources Operator.

current limitations

Please check the issues section for the known issues and limitations of the NUMA resources operator.

additional noteworthy information

NRT objects only take into consideration exclusively allocated CPUs while accounting. In order for a pod to be allocated exclusive CPUs, it HAS to belong to Guaranteed QoS class (request=limit) and request has to be integral. Therefore, CPUs in the shared pool because of pods belonging to best effort/burstable QoS or guaranteed pod with non-integral CPU request would not be accounted for in the NRT objects. Please refer to CPU Manager docs here for more detail on this.

In addition to this, PodResource API is used to extract the resource information from Kubelet for resource accounting. CPUs exposed by the List endpoint of Podresource API correspond to exclusive CPUs allocated to a particular container. CPUs that belong to the shared pool are therefore not exposed by this API.

running the e2e suite against your cluster

The NUMA resources operator comes with a growing e2e suite to validate components of the stack (operator proper, RTE) as well as the NUMA aware scheduling as a whole. Pre-built container images including the suites are available. There is no support for these e2e tests images, and they are recommended to be used only for development/CI purposes.

See README.tests.md for detailed instructions about how to run the suite. See tests/e2e/serial/README.md for fine details about the suite and developer instructions.

linking bugs and issues to PRs

PRs fixing issues may link either

  1. the project issues per standard github flow (preferred) Please link the PR using Fixes: #12345 in the PR description and/or link using the github UI
  2. The Red Hat issues boards: OCPBUGS, RFE. Please link the PR using the OCPBUGS-12345: or RFE-9876: prefix in the PR description.

we currently don't support other issue trackers.

About

Operator to enable reporting of per-NUMA-zone compute resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.7%
  • Shell 1.9%
  • Makefile 1.3%
  • Other 0.1%