Re: Using operators in ACLs

2016-02-24 Thread Dmitry Sivachenko
> On 24 Feb 2016, at 14:07, Willy Tarreau wrote: > > On Wed, Feb 24, 2016 at 01:36:39PM +0300, Dmitry Sivachenko wrote: >> I do have "mode http" (I intentionally put it here with a comment). >> Will it work only for tcp-mode frontend? >> Or should I use tcp-request for tcp frontend

Re: Using operators in ACLs

2016-02-24 Thread Willy Tarreau
On Wed, Feb 24, 2016 at 01:36:39PM +0300, Dmitry Sivachenko wrote: > I do have "mode http" (I intentionally put it here with a comment). > Will it work only for tcp-mode frontend? > Or should I use tcp-request for tcp frontend and http-request for http > frontend? Both tcp-request and

Re: Using operators in ACLs

2016-02-24 Thread Dmitry Sivachenko
> On 24 Feb 2016, at 01:02, Willy Tarreau wrote: > > Hi Dmitry, > > On Fri, Feb 19, 2016 at 05:58:47PM +0300, Dmitry Sivachenko wrote: >> Hello, >> >> I want to define ACL which will evaluate to true if a current number of >> connections to a particular backend is greater than a

Re: Using operators in ACLs

2016-02-23 Thread Willy Tarreau
Hi Dmitry, On Fri, Feb 19, 2016 at 05:58:47PM +0300, Dmitry Sivachenko wrote: > Hello, > > I want to define ACL which will evaluate to true if a current number of > connections to a particular backend is greater than a number of usable > servers in that backend multiplied on some constant: >

Using operators in ACLs

2016-02-19 Thread Dmitry Sivachenko
Hello, I want to define ACL which will evaluate to true if a current number of connections to a particular backend is greater than a number of usable servers in that backend multiplied on some constant: be_conn(BACK) > nbsrv(BACK) * N So far I came up with the following solution: frontend