Merge "Adds ability to configure ProxySQL's max replication lag"

This commit is contained in:
Zuul 2022-10-20 14:40:51 +00:00 committed by Gerrit Code Review
commit 065d61f329
3 changed files with 13 additions and 0 deletions

View File

@ -122,6 +122,7 @@ proxysql_workers: "{{ openstack_service_workers }}"
proxysql_max_connections: 40000
# The maximum number of connections to mariadb backends.
proxysql_backend_max_connections: 10000
proxysql_backend_max_replication_lag: "0"
proxysql_admin_user: "kolla-admin"
proxysql_stats_user: "kolla-stats"

View File

@ -33,6 +33,7 @@ mysql_servers:
port : {{ database_port }}
hostgroup : {{ WRITER_GROUP }}
max_connections: {{ proxysql_backend_max_connections }}
max_replication_lag: {{ proxysql_backend_max_replication_lag }}
weight : {{ WEIGHT }}
comment : "Writer {{ host }}"
{% endfor %}

View File

@ -0,0 +1,11 @@
---
features:
- |
Adds ability to configure ProxySQL's max replication lag
via configuration value ``proxysql_backend_max_replication_lag``
which is set to default value as per documentation. If it is
greater than 0, ProxySQL will regularly monitor replication lag
and if it goes beyond the configured threshold it will temporary
shun the host until replication catches up. Please see the official
`upgrade notes <https://proxysql.com/documentation/main-runtime>`__
for more detail.