Re: Looking for a way to limit simultaneous connections per IP

2017-06-28 Thread Patrick Hemmer
On 2017/6/28 17:40, Mark Staudinger wrote: > Hi Patrick, > > Where are you using the stick table and lua script call? Frontend or > backend? > > Perhaps this would work: > > * In the frontend, check the connection count from the "real backend" > stick table > * if the count is > 6, set ACL for

Re: Looking for a way to limit simultaneous connections per IP

2017-06-28 Thread Michael Ezzell
On Jun 28, 2017 16:58, "Patrick Hemmer" wrote: We instead need a way to differentiate (count) connections held open and sitting in the Lua delay function, and connections being processed by a server. My wishlist would be per-client queueing, sort of a source IP or

Re: Looking for a way to limit simultaneous connections per IP

2017-06-28 Thread Mark Staudinger
Hi Patrick, Where are you using the stick table and lua script call? Frontend or backend? Perhaps this would work: * In the frontend, check the connection count from the "real backend" stick table * if the count is > 6, set ACL for the source *Use this ACL to steer the conection to the

Looking for a way to limit simultaneous connections per IP

2017-06-28 Thread Patrick Hemmer
So as the subject indicates, I'm looking to limit concurrent connections to a backend by the source IP. The behavior I'm trying for is that if the client has more than 6 connections, we sit on the request for a second, and then send back a 302 redirect to the same resource that was just requested.