forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add direct scheduler throughput test suite
- Loading branch information
1 parent
f33b0ba
commit 09a0c41
Showing
2 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# ASSUMPTIONS: | ||
# - Underlying cluster should have 100+ nodes. | ||
# See https://github.com/kubernetes/perf-tests/pull/1667#issuecomment-769642266 | ||
|
||
# The minimal number of pods to be used to measure various things like | ||
# pod-startup-latency or scheduler-throughput. The purpose of it is to avoid | ||
# problems in small clusters where we wouldn't have enough samples (pods) to | ||
# measure things accurately. | ||
# TODO( https://github.com/kubernetes/perf-tests/issues/1027): Lower the number of "min-pods" once we fix the scheduler throughput measurement. | ||
{{$MIN_PODS_IN_SMALL_CLUSTERS := 5000}} | ||
|
||
{{$totalSchedulerThroughputPods := DefaultParam .CL2_SCHEDULER_THROUGHPUT_PODS $MIN_PODS_IN_SMALL_CLUSTERS}} | ||
{{$defaultQps := DefaultParam .CL2_DEFAULT_QPS 500}} | ||
{{$defaultBurst := DefaultParam .CL2_DEFAULT_BURST 1000}} | ||
{{$uniformQps := DefaultParam .CL2_UNIFORM_QPS 500}} | ||
|
||
{{$SCHEDULER_THROUGHPUT_THRESHOLD := DefaultParam .CL2_SCHEDULER_THROUGHPUT_THRESHOLD 400}} | ||
|
||
name: direct-scheduler-throughput | ||
namespace: | ||
number: 1 | ||
tuningSets: | ||
# default is a tuningset that is meant to be used when we don't have any specific requirements on pace of operations. | ||
- name: default | ||
globalQPSLoad: | ||
qps: {{$defaultQps}} | ||
burst: {{$defaultBurst}} | ||
- name: UniformQPS | ||
qpsLoad: | ||
qps: {{$uniformQps}} | ||
steps: | ||
- name: Creating scheduler throughput measurements | ||
measurements: | ||
- Identifier: DirectSchedulerThroughputPodStartupLatency | ||
Method: PodStartupLatency | ||
Params: | ||
action: start | ||
labelSelector: group = direct-scheduler-throughput | ||
threshold: 5s | ||
- Identifier: DirectSchedulingThroughput | ||
Method: SchedulingThroughput | ||
Params: | ||
action: start | ||
labelSelector: group = direct-scheduler-throughput | ||
measurmentInterval: 1s | ||
- name: create scheduler throughput pods | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$totalSchedulerThroughputPods}} | ||
tuningSet: UniformQPS | ||
objectBundle: | ||
- basename: direct-scheduler-throughput-pod | ||
objectTemplatePath: pod-default.yaml | ||
templateFillMap: | ||
Group: direct-scheduler-throughput | ||
- name: Waiting for scheduler throughput pods to be created | ||
measurements: | ||
- Identifier: WaitForDirectSchedulerThroughputPods | ||
Method: WaitForRunningPods | ||
Params: | ||
action: gather | ||
timeout: 5m | ||
desiredPodCount: {{$totalSchedulerThroughputPods}} | ||
labelSelector: group = direct-scheduler-throughput | ||
- name: Collecting scheduler throughput measurements | ||
measurements: | ||
- Identifier: DirectSchedulerThroughputPodStartupLatency | ||
Method: PodStartupLatency | ||
Params: | ||
action: gather | ||
- Identifier: DirectSchedulingThroughput | ||
Method: SchedulingThroughput | ||
Params: | ||
action: gather | ||
enableViolations: true | ||
threshold: {{$SCHEDULER_THROUGHPUT_THRESHOLD}} | ||
- name: Delete scheduler throughput pods | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: 0 | ||
tuningSet: default | ||
objectBundle: | ||
- basename: scheduler-throughput-pod | ||
objectTemplatePath: pod-default.yaml | ||
templateFillMap: | ||
Group: direct-scheduler-throughput |
10 changes: 10 additions & 0 deletions
10
clusterloader2/testing/scheduler-throughput/pod-default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: pod-churn- | ||
labels: | ||
group: {{.Group}} | ||
spec: | ||
containers: | ||
- image: registry.k8s.io/pause:3.9 | ||
name: pause |