[Fwd: question about bandwidth limit]

Cliff Wells cliff at develix.com
Thu Apr 3 08:59:38 MSD 2008


-------- Forwarded Message --------
From: chanix <chanix at 163.com>
To: Cliff Wells <cliff at develix.com>
Subject: question about bandwidth limit
Date: Thu, 3 Apr 2008 10:36:09 +0800 (CST)

 
 
 
 Hi :) thank you for reading.
 
I use nginx build my download server, Now I have a question about
bandwidth limit.
 
I run nginx on my download server (8G RAM + 250G SATA + IntelE4500), and
it's good, max outbound is 704M bits/sec. Now I need to limit it to 500M
bits/sec at server level, so I edit my nginx.conf as below:
 
http {
...
    limit_zone dlconn $binary_remote_addr 10m;
    server {
...
        # bytes/sec
        set $limit_rate 10m;
        limit_conn dlconn 5;
        limit_rate 25k;
...
    }

limit_conn, limit_rate works, but set $limit_rate 10m; doesn't. I tried
0.5.26 and 0.6.29.
 
Is anything worng? what & how should I do?



________________________________________________________________________
中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线 






More information about the nginx mailing list