Haproxy Slow Reload in DB Mode

Posted by com on Server Fault See other posts from Server Fault or by com
Published on 2012-04-01T09:57:20Z Indexed on 2012/04/01 11:33 UTC
Read the original article Hit count: 208

Filed under:
|

Recently I started using great tool for load balancing - Haproxy.

There is only one disturbing thing that I cannot figure out how to deal with it. We use haproxy for load balancing mysql traffic. When there is a lot of traffic and many connection it takes ages for haproxy to reload (~ 30 min), with less traffic it doest reload within 1 min.

I do reload with:

service haproxy reload

Of course if I need to do an urgent change in configuration I expect haproxy to do reload very fast. Killing haproxy instances waiting for disconnection causes to disconnection of msyql connections.

It looks like that I made mistake in settings of haproxy or in settings of application. If you know how to solve this please help me.

Thanks!

© Server Fault or respective owner

Related posts about ruby-on-rails

Related posts about haproxy