Skip to content

Commit

Permalink
OCPBUGS-21803: test/e2e: Add test case for 2000000 maxConnections
Browse files Browse the repository at this point in the history
This commit adds a test case to verify that the maxConnections setting
can be configured with the absolute upper limit of 2000000, as defined
by the API

% oc explain ingresscontroller.spec.tuningOptions.maxConnections
KIND:     IngressController
VERSION:  operator.openshift.io/v1

FIELD:    maxConnections <integer>

DESCRIPTION:
     maxConnections defines the maximum number of simultaneous
     connections that can be established per HAProxy process.
     Increasing this value allows each ingress controller pod to
     handle more connections but at the cost of additional system
     resources being consumed. Permitted values are: empty, 0, -1, and
     the range 2000-2000000.

This change requires openshift/router#527.

Fixes: https://issues.redhat.com/browse/OCPBUGS-21803.
  • Loading branch information
frobware authored and openshift-cherrypick-robot committed Oct 18, 2023
1 parent cd97771 commit 00990ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/maxconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func TestTunableMaxConnectionsValidValues(t *testing.T) {
{"set maxconn 12345", 12345, "12345"},
{"set maxconn auto", -1, "auto"},
{"set maxconn to default", 0, ""},
{"set maxconn to 2000000", 2000000, "2000000"},
} {
t.Log(testCase.description)
if err := updateMaxConnections(t, kclient, time.Minute, testCase.maxConnections, icName); err != nil {
Expand Down

0 comments on commit 00990ac

Please sign in to comment.