File tree Expand file tree Collapse file tree
clusterloader2/testing/write-throughput Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Write throughput with background watch benchmark
22{{$podCount := DefaultParam .CL2_PODS_BENCHMARK_POD_COUNT 10000}}
3+ {{$podSize := DefaultParam .CL2_POD_SIZE "10KB"}}
34{{$watchReplicas := DefaultParam .CL2_PODS_WATCH_REPLICAS 10}}
45{{$writeReplicas := DefaultParam .CL2_PODS_WRITE_REPLICAS 10}}
56{{$patchQps := DefaultParam .CL2_PODS_PATCH_QPS 100}}
@@ -16,11 +17,11 @@ tuningSets:
1617steps :
1718- name : Create initial baseline realistic target pods
1819 module :
19-
2020 path : modules/initial-pods/config.yaml
2121 params :
2222 action : create
2323 podCount : {{$podCount}}
24+ podSize : {{$podSize}}
2425
2526- name : Start API responsiveness and resource measurements
2627 module :
Original file line number Diff line number Diff line change 22# Valid actions: "create", "delete"
33{{$action := .action}}
44{{$podCount := DefaultParam .podCount 10000}}
5+ {{$podSize := DefaultParam .podSize (DefaultParam .CL2_POD_SIZE "10KB")}}
6+ {{$podTemplate := DefaultParam .podTemplate ""}}
7+ {{if eq $podTemplate ""}}
8+ {{if or (eq $podSize "10KB") (eq $podSize "30")}}
9+ {{$podTemplate = "modules/initial-pods/pod_10KB.yaml"}}
10+ {{end}}
11+ {{end}}
512{{$replicas := 0}}
613{{if eq $action "create"}}
714{{$replicas = $podCount}}
1825 replicasPerNamespace : {{$replicas}}
1926 objectBundle :
2027 - basename : bench-pod
21- objectTemplatePath : modules/initial-pods/pod.yaml
28+ objectTemplatePath : {{$podTemplate}}
Original file line number Diff line number Diff line change @@ -123,6 +123,16 @@ spec:
123123 requests :
124124 cpu : 5m
125125 memory : 20M
126+ terminationGracePeriodSeconds : 1
127+ tolerations :
128+ - key : " node.kubernetes.io/not-ready"
129+ operator : " Exists"
130+ effect : " NoExecute"
131+ tolerationSeconds : 900
132+ - key : " node.kubernetes.io/unreachable"
133+ operator : " Exists"
134+ effect : " NoExecute"
135+ tolerationSeconds : 900
126136 volumes :
127137 - name : configmap
128138 configMap :
Original file line number Diff line number Diff line change 11{{$image := DefaultParam .CL2_BENCHMARK_IMAGE "gcr.io/k8s-staging-perf-tests/perf-tests-util/request-benchmark:v0.0.18"}}
22{{$imagePullPolicy := DefaultParam .CL2_IMAGE_PULL_POLICY "IfNotPresent"}}
3- {{$cpu := DefaultParam .cpu "200m "}}
4- {{$memory := DefaultParam .memory "100Mi "}}
3+ {{$cpu := DefaultParam .cpu "2000m "}}
4+ {{$memory := DefaultParam .memory "1000Mi "}}
55
66apiVersion : apps/v1
77kind : Deployment
Original file line number Diff line number Diff line change 11{{$image := DefaultParam .CL2_BENCHMARK_IMAGE "gcr.io/k8s-staging-perf-tests/perf-tests-util/request-benchmark:v0.0.18"}}
22{{$imagePullPolicy := DefaultParam .CL2_IMAGE_PULL_POLICY "IfNotPresent"}}
3- {{$cpu := DefaultParam .cpu "200m "}}
4- {{$memory := DefaultParam .memory "100Mi "}}
3+ {{$cpu := DefaultParam .cpu "500m "}}
4+ {{$memory := DefaultParam .memory "200Mi "}}
55
66apiVersion : apps/v1
77kind : Deployment
You can’t perform that action at this time.
0 commit comments