Merge "set haproxy balance algorithm to roundrobin for horizon"

This commit is contained in:
Zuul 2022-10-04 14:21:20 +00:00 committed by Gerrit Code Review
commit 2d37ce15e7
2 changed files with 8 additions and 2 deletions

View File

@ -42,7 +42,7 @@ horizon_services:
frontend_http_extra: frontend_http_extra:
- "use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }" - "use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }"
backend_http_extra: backend_http_extra:
- "balance source" - "balance {{ 'roundrobin' if enable_memcached | bool or horizon_backend_database | bool else 'source' }}"
tls_backend: "{{ horizon_enable_tls_backend }}" tls_backend: "{{ horizon_enable_tls_backend }}"
horizon_redirect: horizon_redirect:
enabled: "{{ enable_horizon | bool and kolla_enable_tls_internal | bool }}" enabled: "{{ enable_horizon | bool and kolla_enable_tls_internal | bool }}"
@ -59,7 +59,7 @@ horizon_services:
frontend_http_extra: frontend_http_extra:
- "use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }" - "use_backend acme_client_back if { path_reg ^/.well-known/acme-challenge/.+ }"
backend_http_extra: backend_http_extra:
- "balance source" - "balance {{ 'roundrobin' if enable_memcached | bool or horizon_backend_database | bool else 'source' }}"
tls_backend: "{{ horizon_enable_tls_backend }}" tls_backend: "{{ horizon_enable_tls_backend }}"
horizon_external_redirect: horizon_external_redirect:
enabled: "{{ enable_horizon | bool and kolla_enable_tls_external | bool }}" enabled: "{{ enable_horizon | bool and kolla_enable_tls_external | bool }}"

View File

@ -0,0 +1,6 @@
---
other:
- |
sets balancing algorithm to round-robin for horizon
if memcached is enabled
`LP#1990523 <https://launchpad.net/bugs/1990523>`__