volcano-sh / volcano

A Cloud Native Batch System (Project under CNCF)
https://volcano.sh
Apache License 2.0
4.25k stars 971 forks source link

Guarantee does not take effect in hierarchical queues #3828

Open hwdef opened 1 week ago

hwdef commented 1 week ago

Description

cluster:

5 node 8cpu per node

queue:

image

vcjob:

apiVersion: batch.volcano.sh/v1alpha1
kind: Job
metadata:
  name: p4job-1
spec:
  minAvailable: 2
  schedulerName: volcano
  queue: aa
  tasks:
    - replicas: 2
      name: "default-nginx"
      template:
        metadata:
          name: web
        spec:
          containers:
            - image: nginx:1.27-alpine3.19-slim
              imagePullPolicy: Never
              name: nginx
              resources:
                requests:
                  cpu: 6
          restartPolicy: OnFailure
apiVersion: batch.volcano.sh/v1alpha1
kind: Job
metadata:
  name: p0job
spec:
  minAvailable: 2
  schedulerName: volcano
  queue: ab
  tasks:
    - replicas: 2
      name: "default-nginx"
      template:
        metadata:
          name: web
        spec:
          containers:
            - image: nginx:1.27-alpine3.19-slim
              imagePullPolicy: Never
              name: nginx
              resources:
                requests:
                  cpu: 6
          restartPolicy: OnFailure

Steps to reproduce the issue

  1. create all queues
  2. create all vcjobs
  3. all vcjobs is running

Describe the results you received and expected

all vcjobs is pending, because it requires insufficient resources

5x8c=40 40c-30c=10c 10c < 2x6c

What version of Volcano are you using?

1.10

Any other relevant information

No response