The cluster needs to have overcommit ratio enabled in order to set the namespace overcommit ratio.
You can set the overcommit ratio separately for the namespace based on the resource requirements for CPU and memory in the current namespace. This ensures that the limit and request values for containers set by users in this namespace are within a reasonable range, thereby improving the utilization of computing resources.
Assuming the namespace overcommit ratio is set to 2, when creating an application and specifies a CPU limit of 4c, the corresponding CPU request value is calculated as:
CPU Request = CPU Limit / Overcommit Ratio
Thus, the CPU request becomes 4c / 2 = 2c.