]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: change balance in haproxy cfg to roundrobin in tcp mode
authorAdam King <adking@redhat.com>
Mon, 15 Jul 2024 15:26:10 +0000 (11:26 -0400)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Wed, 8 Oct 2025 14:37:30 +0000 (20:07 +0530)
This was recommended to better support large deployments
that are trying to send lots of data per client and want
multiple backend gateways serving each client

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2
src/pybind/mgr/cephadm/tests/test_services.py

index 997620b369cc19b116750984867d39b2cb83278b..b9b528437689cab90f4d20f41aa0bd0a5bbc2c3b 100644 (file)
@@ -86,8 +86,7 @@ backend backend
 {% endif %}
 {% if mode == 'tcp' %}
     mode        tcp
-    balance     source
-    hash-type   consistent
+    balance     roundrobin
 {% if default_server_opts %}
     default-server {{ default_server_opts|join(" ") }}
 {% endif %}
index c990129e769d08d4fd146d22699ea73e01132bf2..cd1e98b0df2ff0a118605e923057beb77d441302 100644 (file)
@@ -2786,8 +2786,7 @@ class TestIngressService:
             '    default_backend backend\n\n'
             'backend backend\n'
             '    mode        tcp\n'
-            '    balance     source\n'
-            '    hash-type   consistent\n'
+            '    balance     roundrobin\n'
         )
         if enable_haproxy_protocol:
             haproxy_txt += '    default-server send-proxy-v2\n'
@@ -3606,8 +3605,7 @@ class TestIngressService:
             '    default_backend backend\n\n'
             'backend backend\n'
             '    mode        tcp\n'
-            '    balance     source\n'
-            '    hash-type   consistent\n'
+            '    balance     roundrobin\n'
             '    default-server send-proxy-v2\n'
             '    server nfs.foo.0 192.168.122.111:12049 check\n'
         )