Rate-limiting across connections

B.R. reallfqq-nginx at yahoo.fr
Fri Nov 14 19:31:17 UTC 2014


The limit_rate
directive documentation clearly states that it is applied on a per-request
How would one rate-limit a client over N connections?

   1. Count all N simultaneous connections from a single client
   2. Set a rate capped to maxRate/N for each n (connection)

The second part would be a simple recipe, applied through the use of
<http://nginx.org/en/docs/http/ngx_http_core_module.html#var_limit_rate> to
dynamically set it, provided the information of the first part was

I see variables such as $connection
<http://nginx.org/en/docs/http/ngx_http_core_module.html#var_connection> or
but everything available is connection-based.
Would it be possible to have cross-connection information/states about
clients or is it a limitation due to how nginx operates?
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20141114/42a8ec7f/attachment.html>

More information about the nginx mailing list