On Thursday 16 of June 2011 09:30:25 Stefano Sasso wrote:
> Hello folks,
>   I wrote a simple perl daemon that acts as backend server weight
> watchdog, dynamically change server weight on haproxy configuration
> through its socket.
> 
> The daemon polls the backends to a specific url, that should return
> the current server load. Basing on the server load the watchdog change
> the backend weight.
> 
> You can find it here (v 0.9): https://github.com/ssasso/lbwwd

Looks great, BUT :)

* no IPv6 backend support
* if one backend fails and takes too long to respond, the whole process is 
blocked for 5 seconds.

I suggest you to use AnyEvent::HTTP, which allows you to perform multiple http 
requests simultaneously, has built-in ipv6 and SSL/TLS support.

Brane

Reply via email to