volcano-sh / volcano

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

Priority preemption not effective #3787

Closed 10121444060 closed 1 month ago

10121444060 commented 1 month ago

Description

After the priority preemption strategy was enabled, high priority pods did not experience preemption.

Steps to reproduce the issue

  1. Created two priorityclasses, high priority and med priority, with 100 and 50 respectively, and enabled pods that can preempt low priority classes.
  2. Deploy the med priority job first, wait until all med priority pods are running. At this point, the system resources are insufficient, and no pods with the same resources can be started again.
  3. Deploy high priority again and check if high priority pods will preempt medium priority pods.
  4. High priority jobs are presented as pending and no preemption has occurred.

Describe the results you received and expected

The current mid priority job has not been preempted.and the expected result is high priority job preemption, while medium priority job is pending.

What version of Volcano are you using?

1.9.0

Any other relevant information

Kubernetes version: 1.21.7 OS version: openEuler 22.03 LTS Kernel version: x86_64

10121444060 commented 1 month ago

No problem, the configuration is incorrect. Need to open preempt and enableJobStarving: false.