Skip to content

Commit ecc770a

Browse files
committed
Move write throughput benchmark to 10KB pod
1 parent 2f1c19b commit ecc770a

5 files changed

Lines changed: 24 additions & 6 deletions

File tree

clusterloader2/testing/write-throughput/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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:
1617
steps:
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:

clusterloader2/testing/write-throughput/modules/initial-pods/config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
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 eq $podSize "10KB"}}
9+
{{$podTemplate = "modules/initial-pods/pod_10KB.yaml"}}
10+
{{end}}
11+
{{end}}
512
{{$replicas := 0}}
613
{{if eq $action "create"}}
714
{{$replicas = $podCount}}
@@ -18,4 +25,4 @@ steps:
1825
replicasPerNamespace: {{$replicas}}
1926
objectBundle:
2027
- basename: bench-pod
21-
objectTemplatePath: modules/initial-pods/pod.yaml
28+
objectTemplatePath: {{$podTemplate}}

clusterloader2/testing/write-throughput/modules/initial-pods/pod.yaml renamed to clusterloader2/testing/write-throughput/modules/initial-pods/pod_10KB.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

clusterloader2/testing/write-throughput/modules/watch/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
apiVersion: apps/v1
77
kind: Deployment

clusterloader2/testing/write-throughput/modules/writer/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
apiVersion: apps/v1
77
kind: Deployment

0 commit comments

Comments
 (0)