mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Use barrier instead of sleep when possible in scheduler_perf test cases
This commit is contained in:
parent
fbf1a0dc18
commit
bae0eb91d4
@ -1449,8 +1449,8 @@
|
|||||||
podTemplatePath: config/templates/gated-pod.yaml
|
podTemplatePath: config/templates/gated-pod.yaml
|
||||||
skipWaitToCompletion: true
|
skipWaitToCompletion: true
|
||||||
# Wait to make sure gated pods are enqueued in scheduler.
|
# Wait to make sure gated pods are enqueued in scheduler.
|
||||||
- opcode: sleep
|
- opcode: barrier
|
||||||
durationParam: $sleepDuration
|
stageRequirement: Attempted
|
||||||
# Create pods that will be gradually deleted after being scheduled.
|
# Create pods that will be gradually deleted after being scheduled.
|
||||||
- opcode: createPods
|
- opcode: createPods
|
||||||
countParam: $deletingPods
|
countParam: $deletingPods
|
||||||
@ -1471,7 +1471,6 @@
|
|||||||
gatedPods: 10
|
gatedPods: 10
|
||||||
deletingPods: 10
|
deletingPods: 10
|
||||||
measurePods: 10
|
measurePods: 10
|
||||||
sleepDuration: 1s
|
|
||||||
- name: 1Node_10000GatedPods
|
- name: 1Node_10000GatedPods
|
||||||
labels: [performance, short]
|
labels: [performance, short]
|
||||||
threshold: 130
|
threshold: 130
|
||||||
@ -1479,7 +1478,6 @@
|
|||||||
gatedPods: 10000
|
gatedPods: 10000
|
||||||
deletingPods: 20000
|
deletingPods: 20000
|
||||||
measurePods: 20000
|
measurePods: 20000
|
||||||
sleepDuration: 5s
|
|
||||||
|
|
||||||
- name: SchedulingGatedPodsWithPodAffinityImpactForThroughput
|
- name: SchedulingGatedPodsWithPodAffinityImpactForThroughput
|
||||||
defaultPodTemplatePath: config/templates/pod-with-label.yaml
|
defaultPodTemplatePath: config/templates/pod-with-label.yaml
|
||||||
@ -1491,9 +1489,8 @@
|
|||||||
countParam: $gatedPods
|
countParam: $gatedPods
|
||||||
podTemplatePath: config/templates/gated-pod-with-pod-affinity.yaml
|
podTemplatePath: config/templates/gated-pod-with-pod-affinity.yaml
|
||||||
skipWaitToCompletion: true
|
skipWaitToCompletion: true
|
||||||
- opcode: sleep
|
- opcode: barrier
|
||||||
# To produce a stable scheduler_perf result, here we make sure all gated Pods are stored in the scheduling queue.
|
stageRequirement: Attempted
|
||||||
durationParam: $sleepDuration
|
|
||||||
- opcode: createPods
|
- opcode: createPods
|
||||||
# The scheduling of those Pods will result in many cluster events (AssignedPodAdded)
|
# The scheduling of those Pods will result in many cluster events (AssignedPodAdded)
|
||||||
# and each of them will be processed by the scheduling queue.
|
# and each of them will be processed by the scheduling queue.
|
||||||
@ -1506,14 +1503,12 @@
|
|||||||
params:
|
params:
|
||||||
gatedPods: 10
|
gatedPods: 10
|
||||||
measurePods: 10
|
measurePods: 10
|
||||||
sleepDuration: 1s
|
|
||||||
- name: 1Node_10000GatedPods
|
- name: 1Node_10000GatedPods
|
||||||
labels: [performance, short]
|
labels: [performance, short]
|
||||||
threshold: 110
|
threshold: 110
|
||||||
params:
|
params:
|
||||||
gatedPods: 10000
|
gatedPods: 10000
|
||||||
measurePods: 20000
|
measurePods: 20000
|
||||||
sleepDuration: 5s
|
|
||||||
|
|
||||||
# This test case simulates the scheduling when pods selected to schedule have deletionTimestamp set.
|
# This test case simulates the scheduling when pods selected to schedule have deletionTimestamp set.
|
||||||
# There was a memory leak related to this path of code fixed in:
|
# There was a memory leak related to this path of code fixed in:
|
||||||
|
Loading…
Reference in New Issue
Block a user