New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load mysql_group_replication_hostgroups from the config file #1050
Comments
Hi @chatziko . Thank you for the report. |
Hi, My problem is that I want to have this config stored in a docker image (not a container), with the possibility to change the mysql servers from a mounted config file. In this scenario I would benefit from defining mysql replication hostgroups in the config file. Do you have any ideas on how to solve this some other way? |
I ended up installing a mysql client via the Dockerfile and executing a sql file from my init script:
Where create_replication_hostgroup.sql is as simple as:
|
Hi @renecannao I'm used to managing configuration with plain text file as I use tools for configuration management like Salt. Table have no "state", you can't diff in a simple way... so SQL is more complex and then much more difficult to use for configuration than plain text file. Actually when a configuration change in proxysql.cnf (it append only at the installation), I remove all in datadir (/var/lib/proxysql) and then start proxysql. |
…ysown#1050), sample config file update
If you are making changes only in the config file you will then you can either stop the ProxySQL service and start it with "--initial" (which essentially deletes and re-creates the configuration database) or alternatively run "LOAD ... FROM CONFIG;" in the admin interface during runtime, without stopping the service at all. Again, using the configuration database as Rene mentioned is encouraged as the first design goal of ProxySQL is "Maximum Uptime". |
…ysown#1050), sample config file update
@pondix : thank you |
mysql_replication_hostgroups
are loaded from the config file byLOAD MYSQL SERVERS FROM CONFIG
. The same should happen formysql_group_replication_hostgroups
.The text was updated successfully, but these errors were encountered: