kolla-ansible/releasenotes/notes/haproxy-service-backend-weight-e4a908f732a37b42.yaml
Michal Arbet 7c2b4bead2 Add way to change weight of haproxy backend per service
This patch adding option to control weight of haproxy
backends per service via host variable.

Example:

[control]
server1 haproxy_nova_api_weight=10
server2 haproxy_nova_api_weight=2 haproxy_keystone_internal_weight=10
server3 haproxy_keystone_admin_weight=50

If weight is not defined, everything is working as before.

Change-Id: Ie8cc228198651c57f8ffe3eb060875e45d1f0700
2021-09-26 09:43:57 +02:00

11 lines
443 B
YAML

---
features:
- |
The haproxy-config role now allows user to set weight per
haproxy's backend. This can be achieved by setting a hostvar
``haproxy_{{ service }}_weight`` in inventory file to any integer
value in range from 1 to 256, so the higher the weight, the higher
the load. This can be set per ``{{ service }}``. If hostvar is not
specified, backend's weight is not rendered in final haproxy
configuration.