-
Notifications
You must be signed in to change notification settings - Fork 70
CON-4263 nfsResourceLimitsCpuM and nfsResourceLimitsMemoryMi can't be set to 0 to disable limits #478
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
base: master
Are you sure you want to change the base?
Conversation
… set to 0 to disable limits
|
Could you elaborate how you've determined setting requests and limits to |
|
We tested using the following in the NFS StorageClass to disable resource enforcement: nfsResourceLimitsCpuM: "0" The driver interpreted "0" correctly for limits, but still applied the default requests (500m CPU, 512Mi memory). requests.cpu = 500m > limits.cpu = 0 This mismatch caused the NFS deployment to fail and PVC provisioning to fail. |
|
When specifying these, seeing this error in PVC provisioning:
|
|
We tested the code changes with setting following value also to '0' right ? It should not fail even if we set all the values as '0' nfsResourceRequestsCpuM |
This is a matter of semantics, you can't request "500m" when the limit is "0" and why would requests matter when there's no limit? An NFS server freshly deployed doesn't need a lot to boot. Set both to "0" and you get the results you need, right?
The original branch is working without these changes with all "0" and that was how it was tested. Requests was added after limits and we never considered setting just requests without limits. |
|
If all four parameters are set to "0", the behavior is correct — no limits and no requests are applied. The problem occurs only when the user specifies limits = "0" but does not provide explicit request value So the fix we are implementing ensures that if only limits are set to "0", requests are also disabled automatically, and the driver shouldn’t fall back to defaults. |
No description provided.