Hi @darshana,
In Kubernetes, we can define resource requests and limits for each container that resides within a Pod. Depending on the application, minimum and maximum resources needed by a Pod could differ. requests
defines the minimum resource requirement for the container while limits
define the maximum. Scale
and cpuRatio
parameters are a way to control resource requests and limits within the cluster.
As per my understanding, these parameters are as follows.
Scale - defines the scaling of cpu/memory compared to the production mode. If the scale is set as 50, the above request and limit parameters will be set to 50% of what’s in the Pod definition.
cpuRatio - this will set the k8s CPU request/limit ratio on all containers. i.e. If cpuRatio is set to 50, and the CPU limit is set as 500m in the Pod definition, requests will be set to 250m, which is 50% of the value set in limits.
I was not able to find a parameter called memRatio in the documentation.
Hope this helps!