kubernetes: Failing ci-benchmark-scheduler-perf-master tests for PreemptionAsync and Unschedulable tests
Which jobs are failing?
ci-benchmark-scheduler-perf-master
Which tests are failing?
PreemptionAsync and Unschedulable test cases
Since when has it been failing?
17th Oct 2024
Testgrid link
https://testgrid.k8s.io/sig-scalability-benchmarks#scheduler-perf
Reason for failure (if possible)
PreemptionAsync test is failing because of context deadline error:
scheduler_perf.go:1427: FATAL ERROR: op 3: error in waiting for pods to get scheduled: at least pod namespace-3/pod-4vfnq is not scheduled: context deadline exceeded
--- FAIL: BenchmarkPerfScheduling/PreemptionAsync/5000Node
Caused by #127829
Unschedulable test is failing because of too high threshold configured:
scheduler_perf.go:1298: ERROR: op 2: BenchmarkPerfScheduling/Unschedulable/5kNodes/10kPods/namespace-2: expected SchedulingThroughput Average to be higher: got 289.204988, want 400.000000
--- FAIL: BenchmarkPerfScheduling/Unschedulable/5kNodes/10kPods
Caused by #128153 After making these changes, the threshold should be even lower, as it seems a value around 270-280 should be good at the moment.
Anything else we need to know?
You should ignore the first row in testgrid (k8s.io/kubernetes/test/integration/scheduler_perf.scheduler_perf), as it doesn’t affect the results and check only the second one (ci-benchmark-scheduler-perf-master.Overall).
Relevant SIG(s)
/sig scheduling
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (18 by maintainers)
/close
Tests were fixed and improved
@dom4ha @macsko looks like it’s now already resolved, right?
I looked deeper into this phenomena and I noticed that the time of processing unschedulable pods depends on the number of scheduled pods (initialPods). Apparently, in PostFilter, the preemption plugin goes thought all the pods even though the Pod is unschedulable on the Node itself.
So, the preemption scenario is faster, as the preemption plugin finds candidates very quickly and the time to preempt them (send api calls synchronously) is actually smaller than going through all the remaining candidates.
In the context of https://github.com/kubernetes/kubernetes/issues/126858, in cases where there are thousands of pods running, making api calls asynchronously for the unschedulable pods may not bring the expected improvements, as going though all pod candidates may be more expensive than the api call itself. I can imagine how high priority unschedulable pods can block scheduling for some time.
These tests aren’t more scattered than the others. Unschedulable (yellow = average):
I think threshold around 200 should be good.
PreemptionAsync:
Scheduling throughput increased after #128348 and I think the actual threshold is too low, so we should increase it after getting more data.