Skip to content
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

Enable proxysql cluster sync #1

Open
optimadba opened this issue Aug 15, 2022 · 0 comments
Open

Enable proxysql cluster sync #1

optimadba opened this issue Aug 15, 2022 · 0 comments

Comments

@optimadba
Copy link

In case there are multiple ProxySQL servers part of a setup you could make use of cluster sync functionality. To enable this add the following commands to the setup of proxysql:
INSERT INTO proxysql_servers (hostname,port,weight,comment) VALUES ('************',6032,0,'************'); INSERT INTO proxysql_servers (hostname,port,weight,comment) VALUES ('************',6032,0,'************'); LOAD PROXYSQL SERVERS TO RUNTIME; SAVE PROXYSQL SERVERS TO DISK; SET admin-cluster_username = 'cluster'; SET admin-cluster_password = '******'; UPDATE global_variables SET variable_value='admin:******;cluster:******' WHERE variable_name='admin-admin_credentials'; update global_variables set variable_value='cluster' where variable_name='admin-cluster_username'; update global_variables set variable_value='********' where variable_name='admin-cluster_password'; LOAD ADMIN VARIABLES TO RUNTIME ; SAVE ADMIN VARIABLES TO DISK ;
Maybe additional firewall rules are needed between the proxysql nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant