At 10:39 AM 4/7/2009, Gary Smith wrote:
>I have system that is generating a larger than normal number of connection
>errors. We know why the errors are occuring and are working to resolve
>them (connectivity and load issue on the client). The question is, how
>can I tweak mysql to tolerate a higher level than normal of bad
>connections before banning the host.
>What happens is that when we have 300-500 connections a few random ones
>will get mucked up during a heavier than normal load on the client. I
>have set the max connections to 3000 (which we never get close to).
>So, if there a config/startup setting to tweak to ease the banning of bad
>connetions thus reducing the need for me to continually "mysqladmin
>flush-host" on the server?
What do you mean "mucked up"? This is a technical term I'm not familiar
Do you mean a few of the queries are taking too long to complete? You could
do a "Show ProcessList" every 15 seconds and kill the process for the low
level user that is taking too long, say over 30 seconds. I'm sure there are
also monitoring tools that could do this for you.
If you are using transaction-less MyISAM tables, can you not use connection
pooling? We've done that in Delphi and MySQL and the connections have
dropped considerably. I'm not sure what language you're using or if this is
a webserver, but a Google search on your development language and "MySQL
connection pooling" should get you pointed in the right direction.
Also you did not say what version of MySQL you're using.