Re: share number of backend-server-connections among backend configurations

2010-06-20 Thread Krzysztof Olędzki

On 2010-06-16 22:14, Martin Kofahl wrote:

Hi, I have some backend-servers (eg A and B) in multiple backends (B
has some special sites running that's why). Algorithm is least
connection. But the information about the number of active
connections is not shared between the backend configurations, even
though servers have the same name. So if A has 10 connections in
backend TWO, backend ONE will still see A as unused with 0
connections. Using the least connection algorithm I would wish that
connection numbers are counted overall.



What can I do to use the least conn algorithm in this setup? Thank
you! Martin


Like Willy already explained, this is not currently possible. However, I 
think this is doable. Maybe not very easy, but I believe it is possible 
to write support for such functionality in a way it should both work 
with queuing and be of course acceptable by Willy. ;)


I'm willing to do it as a sponsored feature. If you are interested 
please contact me privately.



Best regards,

Krzysztof Olędzki



Re: share number of backend-server-connections among backend configurations

2010-06-16 Thread Willy Tarreau
Martin, I replied to your same question on June 11th, may be you
did not get the response ?

Willy

On Wed, Jun 16, 2010 at 10:14:53PM +0200, Martin Kofahl wrote:
> Hi,
> I have some backend-servers (eg A and B) in multiple backends (B has some 
> special sites running that's why). Algorithm is least connection. But the 
> information about the number of active connections is not shared between the 
> backend configurations, even though servers have the same name. So if A has 
> 10 connections in backend TWO, backend ONE will still see A as unused with 0 
> connections. Using the least connection algorithm I would wish that 
> connection numbers are counted overall.
> 
> 
> Sample configuration
> 
> frontend myfrontend *:80
>   acl acl_site1 url_sub   use_backend TWO if acl_site1
> default_backend ONE
> 
> backend ONE
>   server A ...
>   server B ...
> 
> backend TWO
>   server A ...
> 
> 
> What can I do to use the least conn algorithm in this setup?
> Thank you! Martin
> 



share number of backend-server-connections among backend configurations

2010-06-16 Thread Martin Kofahl

Hi,
I have some backend-servers (eg A and B) in multiple backends (B has some 
special sites running that's why). Algorithm is least connection. But the 
information about the number of active connections is not shared between the 
backend configurations, even though servers have the same name. So if A has 10 
connections in backend TWO, backend ONE will still see A as unused with 0 
connections. Using the least connection algorithm I would wish that connection 
numbers are counted overall.


Sample configuration

frontend myfrontend *:80
  acl acl_site1 url_sub 
  use_backend TWO if acl_site1 
  default_backend ONE


backend ONE
  server A ...
  server B ...

backend TWO
  server A ...


What can I do to use the least conn algorithm in this setup?
Thank you! Martin