mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #41494 from jayunit100/sched_per_warn
Automatic merge from submit-queue (batch tested with PRs 41517, 41494, 41163) Make scheduler_perf warn rather then fail if scheduling rate is betwe… **What this PR does / why we need it** Fix scheduler per bench tests so they pass even if there is a cold interval . **Special notes for your reviewer**: This wont effect CI, as this bench test is run manually by devs.
This commit is contained in:
commit
b625fea27e
@ -32,7 +32,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
threshold3K = 100
|
warning3K = 100
|
||||||
|
threshold3K = 30
|
||||||
threshold30K = 30
|
threshold30K = 30
|
||||||
threshold60K = 30
|
threshold60K = 30
|
||||||
)
|
)
|
||||||
@ -44,8 +45,11 @@ func TestSchedule100Node3KPods(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
config := defaultSchedulerBenchmarkConfig(100, 3000)
|
config := defaultSchedulerBenchmarkConfig(100, 3000)
|
||||||
if min := schedulePods(config); min < threshold3K {
|
min := schedulePods(config)
|
||||||
t.Errorf("Too small pod scheduling throughput for 3k pods. Expected %v got %v", threshold3K, min)
|
if min < threshold3K {
|
||||||
|
t.Errorf("Failing: Scheduling rate was too low for an interval, we saw rate of %v, which is the allowed minimum of %v ! ", min, threshold3K)
|
||||||
|
} else if min < warning3K {
|
||||||
|
fmt.Printf("Warning: pod scheduling throughput for 3k pods was slow for an interval... Saw a interval with very low (%v) scheduling rate!", min)
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("Minimal observed throughput for 3k pod test: %v\n", min)
|
fmt.Printf("Minimal observed throughput for 3k pod test: %v\n", min)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user