Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Resource Mgmt: RI-16 Sp 50, Resource Mgmt: RI-16 51
-
5
Description
Add overcommit check, hierarchical quota validation and force flag override for update quota call.
Right now, we only have validation for per quota config. We need to add further validation for the update quota call regarding:
1. Check if the role's resource limits are already breached. To achieve this, we need to first rescind offers until its allocated resources are below limits. If after all rescinds, allocated resources are still above the requested limits, we will return an error unless the `force` flag is used.
2. If the aggregated quota guarantees of all roles are less than the cluster capacity. If so we will return an error unless the `force` flag is used.
3. hierarchical limits validation
a. Check a role's limit is less than its parent's limit.
b. Check the sum of children's guarantees is less than its parent's guarantees.