How to allow Client Requests at a given rate

2019-02-23 Thread Santos Das
Hi, I have a requirement where I need to allow only certain request rate for a given URL. Say /login can be accessed at the rate of 10 RPS. If I get 100 RPS, then 10 should be allowed and 90 should be denied. Any help on how this can be achieved ? *I tried to use the sticky table, but once it b

Re: How to allow Client Requests at a given rate

2019-02-23 Thread Chad Lavoie
Greetings, On 2/23/2019 3:06 AM, Santos Das wrote: Hi, I have a requirement where I need to allow only certain request rate for a given URL. Say /login can be accessed at the rate of 10 RPS. If I get 100 RPS, then 10 should be allowed and 90 should be denied. There are a couple of ways t

Re: How to allow Client Requests at a given rate

2019-02-23 Thread Igor Cicimov
On Sat, 23 Feb 2019 3:09 pm Santos Das wrote: > Hi, > > I have a requirement where I need to allow only certain request rate for a > given URL. > > Say /login can be accessed at the rate of 10 RPS. If I get 100 RPS, then > 10 should be allowed and 90 should be denied. > > Any help on how this can

Error parsing commas in str() fetch

2019-02-23 Thread Nick Ramirez
If I set a variable like this: /http-request set-var(txn.allowed_methods) str("GET,POST,PUT")/ Then I get an error: /parsing [/etc/haproxy/haproxy.cfg:20] : error detected in frontend 'fe_proxy' while parsing 'http-request set-var(txn.allowed_methods)' rule : fetch method 'str' : end of ar

Re: Error parsing commas in str() fetch

2019-02-23 Thread Patrick Hemmer
On 2019/2/23 18:18, Nick Ramirez wrote: > > If I set a variable like this: > > > /http-request set-var(txn.allowed_methods) str("GET,POST,PUT")/ > > > Then I get an error: > > > /parsing [/etc/haproxy/haproxy.cfg:20] : error detected in frontend > 'fe_proxy' while parsing 'http-request set-var(tx