Welcome! Log In Create A New Profile

Advanced

Re: [MODULE] limit traffic rate for nginx

January 09, 2011 09:31PM
Hi,

I modify the calculation method. Now all the connections with same $vara
defined by "limit_traffic_rate_zone" will be record in a queue. Number of the
sent byte will be summarized in every cycle to get the last_rate of
all "same $vara" connections.

for the single connection, rate = (limit - last_rate)/conn + last_rate

So that, the first downloading will not be paused, but it will get a max speed.
For example: The limit_rate is 300KB.First downloading start with rate 300KBps.
After the second, third downloading issued, first will get 250KBps+
rate, and the second, third will get 10~20KBps until the first finish its downloading.
SubjectAuthorPosted

[MODULE] limit traffic rate for nginx

bigplumDecember 17, 2010 09:17AM

Re: [MODULE] limit traffic rate for nginx

Maxim DouninDecember 17, 2010 05:32PM

Re: [MODULE] limit traffic rate for nginx

bigplumDecember 17, 2010 08:08PM

Re: [MODULE] limit traffic rate for nginx

bigplumJanuary 09, 2011 09:31PM

Re: [MODULE] limit traffic rate for nginx

Piotr KarbowskiJanuary 11, 2011 05:40AM

Re: [MODULE] limit traffic rate for nginx

bigplumMay 31, 2013 05:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
Record Number of Guests: 194 on November 23, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready