Skip to content
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

Specify resource limits (and requests) in NFD deployment files #1616

Closed
marquiz opened this issue Mar 14, 2024 · 3 comments · Fixed by #1631
Closed

Specify resource limits (and requests) in NFD deployment files #1616

marquiz opened this issue Mar 14, 2024 · 3 comments · Fixed by #1631
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@marquiz
Copy link
Contributor

marquiz commented Mar 14, 2024

What would you like to be added:

Refs #1614

We should specify resource requests (cpu and memory requests and limits) in the NFD deployment files. I.e. both kustomize and Helm chart.

Why is this needed:

Best practices.

@marquiz marquiz added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 14, 2024
@ArangoGutierrez
Copy link
Contributor

We have https://github.com/kubernetes-sigs/node-feature-discovery/blob/master/deployment/helm/node-feature-discovery/values.yaml#L96

Commented and with a low request/limit. moving forward should be the opposite, it should be uncommented and users can comment out if they feel to.

Numbers should be

     limits:
       cpu: 300m
       memory: 1G
     requests:
       cpu: 100m
       memory: 128Mi

@TessaIO
Copy link
Member

TessaIO commented Mar 14, 2024

/assign

@cmontemuino
Copy link
Contributor

We have https://github.com/kubernetes-sigs/node-feature-discovery/blob/master/deployment/helm/node-feature-discovery/values.yaml#L96

Commented and with a low request/limit. moving forward should be the opposite, it should be uncommented and users can comment out if they feel to.

Numbers should be

     limits:
       cpu: 300m
       memory: 1G
     requests:
       cpu: 100m
       memory: 128Mi

Given that memory cannot be returned back to the pool once assigned, setting limits.memory and requests.memory to the same value will work better. In this case, 1Gi.

For CPU, it worth taking into consideration that setting a limit might cause throttling. If that's undesirable, then leaving limits.cpu unset is the way to go. Otherwise, it's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
4 participants