hierarychical queues validation can not pass although root queue capability greater than sub queue capability
Please describe your problem in detail
My question is:
First I have a root queue and a subQueue offline, I manually set the root capability, so that
root queue capability > offline queue capability, but still got error Failed to check queue's hierarchical structure, error: queue <root> capability is less than its child queue <offline>, and when I set offline queue capability <= root queue deserved, it is ok,why? root queue deserved is auto calculate based on cluster resources,if sub. queue capability must be less than root queue deserved, It is not suitable on cluster auto scaling.
root queue yaml :
apiVersion: scheduling.volcano.sh/v1beta1
kind: Queue
metadata:
name: root
spec:
capability:
cpu: 91696k
memory: 7630840000Gi
deserved:
cpu: "474"
ephemeral-storage: "17542822117376"
hugepages-1Gi: "0"
hugepages-2Mi: "0"
memory: "2661790711961"
pods: "2420"
guarantee:
resource:
cpu: "0"
memory: "0"
reclaimable: false
weight: 100
status:
allocated:
cpu: "0"
memory: "0"
custom subqueue offline yaml :
apiVersion: scheduling.volcano.sh/v1beta1
kind: Queue
metadata:
name: offline
spec:
capability:
cpu: "500"
memory: 1000Gi
deserved:
cpu: "1"
memory: 1Gi
parent: root
reclaimable: false
weight: 100
status:
allocated:
cpu: "0"
memory: "0"
reservation: {}
state: Open
Any other relevant information
No response
There is no need to set the capability for root queue, currently, root queue's cability is set to cluster's total resources
capability, deserved, guarantee all have this issue: )