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
It depends what you consider healthy. Is MySQL healthy as soon as you are able to connect or run a test query? Perhaps you have a more complex setup where you'd have to wait until seconds_behind_master is below a certain threshold or do you have to wait until galera synchronised?
In my proxy implementation I run a Ping command to determine if the MySQL server is ready, but it depends on your situation if this applies there as well.
Here is the thing,I disposed mysql addr in proxy,but this addr was wrong,and proxy stared success.I want to check mysql status when start proxy,not when connection coming.GetConn() method will block when mysql addr is wrong,only if use context.WithTimeout().is there anyway return an error when use client.NewPool(..) method but mysql addr is wrong?
I want to make sure mysql is healthy when I start this proxy,anyway fix this?
The text was updated successfully, but these errors were encountered: