Hello,

Not sure if there is a direct way to do this, but you can always create a monitoring process that will use the haproxy runtime API to MAINT or DRAIN a server until the CPU / network load drops. So you have a simple watchdog process which reads the output from your monitoring tools to decide if a server needs to be disabled or re-enabled.


Hope this helps.


Best regards,


Bruno Henc

On 11/13/18 9:27 AM, Jessy van Baal wrote:

Hi there!

Is there a way that HAProxy 1.8 can balance based on the network or CPU load on the backend servers? Let’s say, a backend server has 90% CPU usage, it gets out of the load balancing pool for a while until it gets stable.

Thanks in advance.

Yours sincerely,

Jessy van Baal

Reply via email to