You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am observing an issue that prevents the proper use of ProxySQL in conjunction with HashiCorp Consul.
I am announcing databases as Consul services and adding them to ProxySQL.
The problem is that ProxySQL resolves the DNS of the service only when it is added to mysql_servers.
P.S. The monitor is disabled.
My Configuration:
ProxySQL is launched with the -M flag, version 2.7.1.
Ubuntu 24.04
root@stand-cli:~# mysql -h127.0.0.1 -P6401 -usvc_users_service_test -p -e "select @@hostname"
mysql: [Warning] Using a password on the command line interface can be insecure.
+---------------------+
| @@hostname |
+---------------------+
| stand-mysql-test-02 |
+---------------------+
As you can see, the master server address has changed.
Query via ProxySQL:
root@stand-cli:~# mysql -h127.0.0.1 -P6401 -usvc_users_service_test -p -e "select @@hostname"
mysql: [Warning] Using a password on the command line interface can be insecure.
+---------------------+
| @@hostname |
+---------------------+
| stand-mysql-test-02 |
+---------------------+
The server has not changed.
Lets restart:
root@stand-cli:~# systemctl restart proxysql
root@stand-cli:~# mysql -h127.0.0.1 -P6401 -usvc_users_service_test -p -e "select @@hostname"
mysql: [Warning] Using a password on the command line interface can be insecure.
+---------------------+
| @@hostname |
+---------------------+
| stand-mysql-test-03 |
+---------------------+
The text was updated successfully, but these errors were encountered:
metanovii
changed the title
ProxySQL does not resolve DNS records.
ProxySQL does not resolve DNS records in runtime
Jan 16, 2025
Hello, I am observing an issue that prevents the proper use of ProxySQL in conjunction with HashiCorp Consul.
I am announcing databases as Consul services and adding them to ProxySQL.
The problem is that ProxySQL resolves the DNS of the service only when it is added to mysql_servers.
P.S. The monitor is disabled.
My Configuration:
ProxySQL is launched with the -M flag, version 2.7.1.
Ubuntu 24.04
Server Addresses:
Checking the Current State:
Query via ProxySQL:
Now I change the master server and check:
As you can see, the master server address has changed.
Query via ProxySQL:
The server has not changed.
Lets restart:
The text was updated successfully, but these errors were encountered: