truenas-csp icon indicating copy to clipboard operation
truenas-csp copied to clipboard

Set different values for resource requests/limits for NFS resources

Open kingnarmer opened this issue 1 year ago • 6 comments

I'm encountering issues with NFS resources pre-allocating excessive CPU and memory in my Kubernetes cluster. For instance, I have several NFS mounts: most of NFS pods consume around 200Mi CPU and 150MiB memory, but two NFS pods are pre-allocated 1 CPU and 2GB. The default for resource/limit values are set at nfsResourceLimitsMemoryMi (2GiB) and nfsResourceLimitsCpuM (1 CPU).

How can I configure different values for NFS resource requests and limits? Currently, the same value is set for both, leading to resource over-allocation and potential CPU throttling for other workloads. Any advice would be appreciated. Thanks!

kingnarmer avatar Dec 04 '23 22:12 kingnarmer