limit_rate for POST targets ?
B.R.
reallfqq-nginx at yahoo.fr
Mon Apr 13 17:03:48 UTC 2015
I do not get (aha) where you saw limit_rate only applies to the GET
method...
But yeah limit_rate applies to resposnes.
Rate limiting only properly applies to sender, in your case the client,
which is the sole entity ablte to properly craft its requests to contain a
specified amount of data/time period.
The only thing you can limit on intermediaries/receiver is
connections/packets, because it is network-related structures which are
trivial to handle/buffer.
Rate-limiting on a transmitting/receiving end requires buffering content
(not envelope, so that means application logic/DPI), and re-crafting
forwarded/processed content into suitable network envelopes.
Way too expensive/dangerous/demanding.
You can limit incoming transmissions in nginx based on connections
(limit_conn) or requests (limit_req).
You can limit incoming transmissions at TCP level in firewalls surch as
iptables based on connections and/or packets.
My 2 cents,
---
*B. R.*
On Sat, Apr 11, 2015 at 2:25 PM, Justin <justinbeech at gmail.com> wrote:
> hmm that is rate limiting req/s
>
> i am looking for an exact limit_rate equivalent - which is bytes/second.
>
> > On 11 Apr 2015, at 10:13 pm, itpp2012 <nginx-forum at nginx.us> wrote:
> >
> > Lua would be a way to go,
> > ea. https://github.com/fanhattan/lua-resty-rate-limit
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,257905,257965#msg-257965
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150413/0378e284/attachment.html>
More information about the nginx
mailing list