Haproxy Slow Reload in DB Mode
- by com
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!