On 2014/3/24 14:53, Yasaman Amannejad wrote:
Hi,

Is there a way to change the server weights in runtime, without
restarting Haproxy? I want to assign weights to servers and change them
dynamically but I do not want to stop Haproxy.
Any help is appreciated.

Thanks

Hi,

You can change the sever's weight dynamically by Unix Socket commands:
set weight <backend>/<server> <weight>[%]

And I suggest that you read Section 9.2 from the configuration manual of HAProxy to get more information about your issue.

Some load balance algorithms are static such as static-rr, uri and so on. It means that changing a server's weight on the fly will have no effect.


--
Best Regards,
Godbach

Reply via email to