From 7723a6f49c83bd7a34ca538ec2b6810dad0b0c25 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Mon, 23 Sep 2024 15:36:53 +0200 Subject: [PATCH] Fix ProxySQL startup mode to use --initial The ProxySQL startup script was incorrectly using the `--reload` flag, which only reloads/merges the configuration without initializing the database from the config file [1]. This change corrects it to use the `--initial` flag, ensuring that the database is always reloaded from the configuration at startup. [1] https://proxysql.com/documentation/configuring-proxysql/#initialstartup Change-Id: I9cc721555a6d19409b6ac24432b6b34a83efc42c --- .../roles/loadbalancer/templates/proxysql/proxysql_run.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/loadbalancer/templates/proxysql/proxysql_run.sh.j2 b/ansible/roles/loadbalancer/templates/proxysql/proxysql_run.sh.j2 index cb4cf99467..c4e18235d6 100644 --- a/ansible/roles/loadbalancer/templates/proxysql/proxysql_run.sh.j2 +++ b/ansible/roles/loadbalancer/templates/proxysql/proxysql_run.sh.j2 @@ -4,5 +4,5 @@ PROXYSQL_LOG_FILE="/var/log/kolla/proxysql/proxysql.log" proxysql \ --idle-threads \ - --reload \ + --initial \ --no-version-check -f -c /etc/proxysql.cnf >> ${PROXYSQL_LOG_FILE} 2>&1