-
Notifications
You must be signed in to change notification settings - Fork 51
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
Connection_timeout for mysql watchdog #3
Comments
Tomi, thanks for bringing this up. Could you clarify how default timeout of 0 prevents detecting server crash. I never had issues with that. Perhaps you mean false detection of server inavailability when the client can't connect immediately? |
This was the status two weeks ago:
One of the servers (10.1.4.88) was crashed - all connections dropping silently (couldn't even ssh to it) What I was able to test was restricting connections from glb server to the backends. No firewalls restrictions:
Dropping access from glb-stage to 10.1.4.218, no connect_timeout defined for watchdog:
Firewall restricted access from glb-stage to 10.1.4.218, connect_timeout=1 defined for watchdog:
So it seems watchdog works fine although for me the latter case seems more accurate when the backend is totally unreachable. |
Tomi, thanks, this makes the issue much clearer now. Looks like a bug in watchdog backend, I'll see if it can be fixed there. The negative connection count though looks far more disturbing... It would be good if there were a way to reproduce it. |
We got again this negative connection issue today. Status looked like this:
All the backends were functioning normally without anything in logs. Some sort of leakage in the wathdog or the glbd itself? |
anything ideas to help debugging with this? Edit 2014-01-03 22:06: |
not right away :( On Fri, Jan 3, 2014 at 7:29 PM, TomiMikola [email protected] wrote:
|
In mysql.sh (row #53 in release 1.0.1) defines no 'connect_timeout' which defaults to 0 in mysql client. With the default value watchdog does not identify properly issue with backend server crash. Setting the 'connect_timeout' to some reasonably short value gives the desired effect of dropping the backend from the pool.
One way the set the 'connect_timeout' parameter is to use OTHER_OPTIONS variable (in glbd.cfg):
This should be noted in the comments of the files/glbd.cfg file. The alternative approach would be to include the connection_timeout parameter in files/mysql.sh row #53 using some variable for setting the timeout value.
The text was updated successfully, but these errors were encountered: