From fe336dd8b96dd245ca672ae24148238e16271cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Sevilla?= Date: Wed, 19 Jul 2023 14:30:50 +0200 Subject: [PATCH] Use randmon balance strategy with passthrough routes (#18) 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..1fa5068 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": "random", + }, }, Spec: routev1.RouteSpec{ Port: &routev1.RoutePort{TargetPort: intstr.FromString("https")},