Re: Limiting parallel requests by source IP address

2015-02-09 Thread ChrisAha
Hi, For my purposes IP address is an acceptable definition of a user. In any case I would use the commercial subscription if it would help with this problem. Rate limiting doesn't help because I don't know ahead of time whether a user will make many fast requests, or fewer slow requests - and in

Re: Limiting parallel requests by source IP address

2015-02-09 Thread B.R.
First, you need to define 'user', which is not a trivial problem. Unless you use the commercial subscription, it is hard to tie a connection to a session. You can use components in fornt of nginx to identify them (usually with cookies). Thus 'user' in nginx FOSS usually means 'IP address'. Now, yo

Limiting parallel requests by source IP address

2015-02-08 Thread ChrisAha
I am using nginx as a reverse proxy to a Ruby on Rails application using the unicorn server on multiple load-balanced application servers. This configuration allows many HTTP requests to be serviced in parallel. I'll call the total number of parallel requests that can be serviced 'P', which is the