-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
TiDB can't support HAProxy mysql-check #10593
Comments
Hi, @fatpa, thanks for your feedback |
The HAProxy statistics report page show all of the TiDB port status are DOWN, but the HAProxy log show nothing. Our HAProxy setting just add
The mysql user is work when we use the mysql-client directly. |
@fatpa The HA proxy logs should show an error such as this one:
Note that TiDB defaults to port |
Hi @morgo, could you show me your HAProxy configuration? |
@fatpa the MySQL part should look something like this guide but with port 4000. You can expose this as 3306 to applications still if you wish i.e:
|
@morgo It looks same as my configuration, but it can't work
|
I'm sorry about the log, cos the log level is set as notify.
|
@morgo Thanks. |
@morgo It works!! |
Environment:
We use HAProxy as the load-balance service of the TiDB. When using HAProxy MySQL health checks for server testing (mysql-check), and we got failed. But using the same configuration on one of our MySQL instances, it works.
So i want to know that is the TiDB can support HAProxy mysql-check protocol, or my HAProxy setting got some trouble on TiDB?
The text was updated successfully, but these errors were encountered: