reload startup option not working in proxysql cluster

Description

With our PXC Kubernetes operator we use --reload startup option when starting ProxySQL in case if the user sets/updates configuration through Kubernetes secret (in that case ProxySQL pods get restarted and the new config is used).
This was working fine with 2.0.18, but with 2.3.2 there seems to be an issue (or we are doing something wrong).

Here's the example config:

Now if we start with this and then just update one variable "max_connections=1024" to "max_connections=4096" in config file and re-run with something like "proxysql -f -c /etc/proxysql/proxysql.cnf --reload", but the new variable is not used when we query it from admin interface.

Here's new info, we have 3 proxysql pods running in a cluster and what operator does when new config is applied it restarts one by one, but I have noticed that when I kill all proxysql pods at once then when they start they use the new config.

Environment

None

Smart Checklist

Activity

Show:

Slava Sarzhan November 24, 2021 at 5:20 PM

The issue was fixed.

Slava Sarzhan November 4, 2021 at 11:56 AM

Hi,
Starting from 2.1.0 proxysql started to sync mysql and admin variables  https://github.com/sysown/proxysql/commit/05a005f9fbe9e52e7c45747d2b9f682102621be8 by default, to have possibility of using custom config for proxysql we need to disable it. 

Tomislav Plavcic November 2, 2021 at 7:36 PM

As discussed it seems proxysql cluster is needed to reproduce (not just one instance), because it seems related to syncing config between instances.

mohit.joshi November 2, 2021 at 7:27 PM

Tested with latest 2.3.2 percona package and it seems to work fine. Below are the steps followed

 

 

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Smart Checklist

Created November 2, 2021 at 4:52 PM
Updated March 5, 2024 at 5:43 PM
Resolved June 9, 2022 at 6:50 AM