Open
Description
What is your proposal:
Support the resource management for Mid-tier pods in the koordlet:
- Identify the extended resources of Mid-tier.
- In the runtime hook, Set the necessary cgroups for Mid+BE pods/containers, just like the BatchResource hook.
- In the metrics module, export the node allocatable and pod requests/limits about Mid resources. koordlet: export mid resource metrics #1874
- Distinguish pods with priority classes (non-Prod) apart from the QoS. koordlet: fix scope of prodReclaimablePredictor resource reclaim #1469
Why is this needed:
The #1361 adds the Mid-tier resource, allowing a pod with Mid priority class to allocate kubernetes.io/mid-cpu
and kubernetes.io/mid-memory
resources. However, the resource management of Mid-tier is not fully supported in the koordlet. For example, the koordlet does not set the related cgroups like cpu.cfs_quota_us
for a Mid+BE pod.