Skip to content

Commit

Permalink
Use randmon balance strategy with passthrough routes
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Jul 19, 2023
1 parent 54b5073 commit 0a1db91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/runner/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")},
Expand Down

0 comments on commit 0a1db91

Please sign in to comment.