proxysql-admin does not pick up changes from configuration file on restart of proxysql
General
Escalation
General
Escalation
Description
Hi, I was trying to switch a PXC cluster from loabal to singlewrite.
Updated /etc/proxysql-admin.cnfMODE entry
Tailed /var/lib/proxysql/proxysql_galera_check.log . no change
restarted proxysql
Tailed /var/lib/proxysql/proxysql_galera_check.log . no change
dropped proxysql-admin configuration and added it back
Tailed /var/lib/proxysql/proxysql_galera_check.log . change is visible
Is this really how it is supposed to work? Why can't we have proxysql-admin pick up configuration changes every time it runs (every 3s by default)? Anything less than that means downtime for the app while either daemon is restarting or actual configuration is disappearing..
Environment
None
Smart Checklist
Activity
Ramesh Sivaraman August 7, 2017 at 4:34 PM
sure, I will create one doc ticket for that.
Michael Coburn August 7, 2017 at 3:47 PM
- Perhaps that should be called out with more emphasis in the documentation, that this tool is for initial setup only? Until you have a decision and code that supports multiple-execution with --enable that actually renders a change in ProxySQL.
Ramesh Sivaraman August 7, 2017 at 5:27 AM
Yes by default proxysql restart doest not change any configuration settings from proxysql-admin.cnf. proxysql-admin is initial configuration tool. To change any settings we have to re-run proxysql-admin tool.
Hi, I was trying to switch a PXC cluster from loabal to singlewrite.
Updated
/etc/proxysql-admin.cnf
MODE
entryTailed /var/lib/proxysql/proxysql_galera_check.log . no change
restarted proxysql
Tailed /var/lib/proxysql/proxysql_galera_check.log . no change
dropped proxysql-admin configuration and added it back
Tailed /var/lib/proxysql/proxysql_galera_check.log . change is visible
Is this really how it is supposed to work? Why can't we have proxysql-admin pick up configuration changes every time it runs (every 3s by default)? Anything less than that means downtime for the app while either daemon is restarting or actual configuration is disappearing..