project-codeflare / mcad

MCAD v2
Apache License 2.0
10 stars 10 forks source link

Add support for ResourceQuota #44

Open atantawi opened 11 months ago

atantawi commented 11 months ago

ResourceQuota

In case a ResourceQuota object exists in the namespace of an AppWrapper, the dispatcher should check if the requests and limits of the AppWrapper are satisfied by the available quota in the ResourceQuota, before the AppWrapper is dispatched and the corresponding pods are created. This avoids some (or all) pods of the AppWrapper being rejected by the resource quota admission controller.

Handling of this issue may be done in phases:

  1. Basic handling of quota resources {cpu, memory, ...}, {requests.cpu, requests.memory, ...} and {limits.cpu, limits.memory, ...}, including extended resources.
  2. Consideration of object count quotas count/<resource>.<group> and count/<resource>.
  3. Cluster wide quotas: ClusterResourceQuota

Issues to worry about:

atantawi commented 7 months ago

Need to handle more than one ResourceQuota object per NameSpace.

atantawi commented 7 months ago

Need to handle scope of ResourceQuota objects.