Welcome! Log In Create A New Profile

Advanced

Re: How can I limit the total speed of a port or domain name?

Weibin Yao
April 05, 2013 10:06AM
How do you test the limit_speed module? It works in my test box.

Thanks.


2013/4/5 tssungeng <nginx-forum@nginx.us>

> centos5.5 + nginx-1.3.14
>
> I use the limit_speed_zone
> (https://github.com/yaoweibin/nginx_limit_speed_module),and set the
> nginx.conf:
>
> http {
> limit_speed_zone one $server_port 10m;
> server {
> listen 8080;
> server_name localhost;
> location / {
> root /opt/case/web/www;
> index index.html index.htm index.php;
> limit_speed one 10k;
> }
> }
> }
>
> The uper setting can limit the speed to 10K per IP.
>
> and then ,i try the HttpLimitConnModule:
>
> http {
> limit_conn_zone $server_port zone=addr:10m;
> server {
> listen 8080;
> server_name localhost;
> location / {
> root /opt/case/web/www;
> index index.html index.htm index.php;
> limit_rate 20k;
> }
> }
> }
>
> The uper setting can limit the speed to 20K per connetction.and if a IP
> open
> 5 thread for conn,then ,the IP can download 100K/s from my nginx.
>
> the nginx.conf of my Nginx with some error?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,238074,238119#msg-238119
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Weibin Yao
Developer @ Server Platform Team of Taobao
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How can I limit the total speed of a port or domain name?

tssungeng April 03, 2013 09:58PM

Re: How can I limit the total speed of a port or domain name?

Francis Daly April 04, 2013 04:40AM

Re: How can I limit the total speed of a port or domain name?

tssungeng April 04, 2013 10:29PM

Re: How can I limit the total speed of a port or domain name?

Francis Daly April 05, 2013 04:08AM

Re: How can I limit the total speed of a port or domain name?

Weibin Yao April 05, 2013 10:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
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