Hi Pablo,

On Wed, Oct 06, 2010 at 01:59:39PM +0200, Pablo Escobar Lopez wrote:
>  hi,
> 
> I have seen previous post in the mailing list about this topic but 
> couldn´t find any docs about dynamic weights in latest haproxy releases.
> 
> Would be great to be able to dinamically modify weight based on servers 
> load. ¿is there any plan in the roadmap to implement this feature? I 
> have also readed in the mailing list someone had implement a patch for 
> haproxy 1.3.X to achieve this. ¿is this patch published?

That tells me nothing. Also, the issue is not to change the weight
but to measure the load and to convert it into a weight. I started
working on an algorithm which would ensure a nice stability of the
weights and adjust them depending on all load variations, but I
stopped because there aren't two places where the load is measured
in the same way. Some people want to consider only idle CPU, others
consider the system's run queue length. Others the CPU usage, others
the number of threads, others the application server's queue length,
etc...

We'd better define a common interface with remote agents so that everyone
can have his own definition of the load.

That say, if you want to experiment a bit, in 1.4 you can already change
a server's weight from the command line interface without restarting
(either absolute or in percent).

Regards,
Willy


Reply via email to