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.
Subject Author Posted

[MODULE] limit traffic rate for nginx

bigplum December 17, 2010 09:17AM

Re: [MODULE] limit traffic rate for nginx

Maxim Dounin December 17, 2010 05:32PM

Re: [MODULE] limit traffic rate for nginx

bigplum December 17, 2010 08:08PM

Re: [MODULE] limit traffic rate for nginx

bigplum January 09, 2011 09:31PM

Re: [MODULE] limit traffic rate for nginx

Piotr Karbowski January 11, 2011 05:40AM

Re: [MODULE] limit traffic rate for nginx

bigplum May 31, 2013 05:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready