diff --git a/ansible/roles/loadbalancer/templates/proxysql/proxysql.yaml.j2 b/ansible/roles/loadbalancer/templates/proxysql/proxysql.yaml.j2 index f5c6f38a31..2b4ad5ccd6 100644 --- a/ansible/roles/loadbalancer/templates/proxysql/proxysql.yaml.j2 +++ b/ansible/roles/loadbalancer/templates/proxysql/proxysql.yaml.j2 @@ -30,7 +30,7 @@ mysql_servers: {% set WEIGHT = 10 %} {% endif %} - address: "{{ 'api' | kolla_address(host) }}" - port : {{ database_port }} + port : {{ mariadb_port }} hostgroup : {{ WRITER_GROUP }} max_connections: {{ proxysql_backend_max_connections }} max_replication_lag: {{ proxysql_backend_max_replication_lag }} diff --git a/releasenotes/notes/proxysql-template-mariadb-port-cf8f2d88c0962b75.yaml b/releasenotes/notes/proxysql-template-mariadb-port-cf8f2d88c0962b75.yaml new file mode 100644 index 0000000000..ed79549c47 --- /dev/null +++ b/releasenotes/notes/proxysql-template-mariadb-port-cf8f2d88c0962b75.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Updates ``proxysql.yaml.j2`` to use mariadb_port for backends. + This fixes setups where ``database_port`` and ``mariadb_port`` differ.