Re: Balance based on network/cpu load
Hi Jessy, We made an opensource feedback agent which you can use if you like, it'll save you the need to make anything: https://www.loadbalancer.org/blog/open-source-windows-service-for-reporting-server-load-back-to-haproxy-load-balancer-feedback-agent/ Aaron West Loadbalancer.org Ltd.
Re: Balance based on network/cpu load
On 13/11/18 9:37 π.μ., Bruno Henc wrote: > 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. > Another approach is to use agent-check from haproxy to query a sidecar process on the backend servers. That sidecar process determines, based on various criteria, the load of the server and instructs haproxy to either drain or reduce the percentage of traffic that it gets. Cheers, Pavlos signature.asc Description: OpenPGP digital signature
Re: Balance based on network/cpu load
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
Balance based on network/cpu load
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