From 0a1db91f47c4843e53d788063073e8ee36c1bb64 Mon Sep 17 00:00:00 2001 From: Raul Sevilla Date: Wed, 19 Jul 2023 12:33:25 +0200 Subject: [PATCH] Use randmon balance strategy with passthrough routes Signed-off-by: Raul Sevilla --- pkg/runner/types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/runner/types.go b/pkg/runner/types.go index db47e0b..e35c18f 100644 --- a/pkg/runner/types.go +++ b/pkg/runner/types.go @@ -213,6 +213,11 @@ var routes = []routev1.Route{ ObjectMeta: metav1.ObjectMeta{ Namespace: benchmarkNs, Name: fmt.Sprintf("%s-passthrough", serverName), + Annotations: map[string]string{ + // Passthrough terminations default balance strategy is source, this strategy is not suitable for + // performance testing when concurrency is higher than 1, as all the requests will use the same source IP + "haproxy.router.openshift.io/balance": "source", + }, }, Spec: routev1.RouteSpec{ Port: &routev1.RoutePort{TargetPort: intstr.FromString("https")},