From cbc171493d202982fd867f134f15ecfb0a27a448 Mon Sep 17 00:00:00 2001 From: Takeshi Yoshino <4511440+tyoshino@users.noreply.github.com> Date: Wed, 6 May 2026 12:26:50 +0000 Subject: [PATCH] fix(wish/cpp): prevent the benchmark pod from running on the same machine as the server pod --- wish/cpp/deployments/benchmark.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wish/cpp/deployments/benchmark.yaml b/wish/cpp/deployments/benchmark.yaml index 56987ee..1af23d0 100644 --- a/wish/cpp/deployments/benchmark.yaml +++ b/wish/cpp/deployments/benchmark.yaml @@ -10,16 +10,21 @@ spec: template: spec: restartPolicy: Never + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: wish-echo-server + topologyKey: kubernetes.io/hostname containers: - name: client image: us-central1-docker.pkg.dev/black-outlet-487003-v4/wish/benchmark:latest command: ["high_qps_benchmark_client"] args: - "--stderrthreshold=0" - - "--benchmark_counters_tabular=true" - "--host=wish-echo-server" - "--port=8080" - - "--benchmark_min_time=5s" resources: requests: cpu: "0.5"