咸鱼

咸鱼是以盐腌渍后,晒干的鱼

0%

nginx限制下载速率

有些文件放在nginx下,如果不做速率限制,当客户端的网络环境比较好的话,下载速度非常快。这本来是好事,但假如服务器带宽只有10M,而有一个客户下载速率达到10M的话,其他的客户将无法访问服务器。
所以,要对单独一个连接进行速率限制。

配置

为方便局域网内测试,这里将限制值设置的比较小。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
server {
listen 80;
server_name localhost;
location / {
root /var/www/test;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;

# Sets the initial amount after which the further
# transmission of a response to a client will be rate limited
# limit_rate_after 10m;
limit_rate_after 100k;
# 每个连接的下载速度限制
limit_rate 50k;
}
}

limit_rate_after 是一个门阀,表示客户下载 10m 或者 100k 的byte之后开始触发速率限制。
limit_rate 是速率限制,最高 50k

测试

1. wget

用wget下载单个文件下载的限制效果

1
2
3
4
5
6
7
8
root@bogon:~/download# wget http://192.168.0.30:6060/test.zip
--2019-08-01 11:12:20-- http://192.168.0.30:6060/test.zip
Connecting to 192.168.0.30:6060... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3520836 (3.4M) [application/zip]
Saving to: ‘test.zip.2’
test.zip.2 100%[=====================>] 3.36M 50.3KB/s in 67s
2019-08-01 11:13:26 (51.7 KB/s) - ‘test.zip.2’ saved [3520836/3520836]

2. apache ab

-n 10 表示总请求数为10,共发出了10次请求
-c 10 表示并发用户数为10,同时有10个用户访问

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
root@bogon:~/download# ab -n 10 -c 10  http://192.168.0.30:6060/test.zip
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.30 (be patient).....done


Server Software: nginx
Server Hostname: 192.168.0.30
Server Port: 6060

Document Path: /test.zip
Document Length: 3520836 bytes

Concurrency Level: 10

# 测试总共耗时
Time taken for tests: 66.629 seconds
Complete requests: 10
Failed requests: 0
Total transferred: 35210750 bytes
HTML transferred: 35208360 bytes

# 每秒钟的请求量
Requests per second: 0.15 [#/sec] (mean)

# 平均请求等待时间
Time per request: 66628.646 [ms] (mean)

# 服务器平均请求响应时间
Time per request: 6662.865 [ms] (mean, across all concurrent requests)

# 带宽速率(这里是 50k * 10连接)
Transfer rate: 516.08 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 14 20 4.0 20 28
Processing: 66528 66565 21.2 66563 66592
Waiting: 0 20 10.5 15 31
Total: 66548 66584 22.9 66590 66611

Percentage of the requests served within a certain time (ms)
50% 66590
66% 66606
75% 66607
80% 66608
90% 66611
95% 66611
98% 66611
99% 66611
100% 66611 (longest request)
root@bogon:~/download#

注意这里的只是限制了单个连接,像迅雷这种采用了多连接下载的软件,这种方法限制不了,还需要限制单个IP的连接数量等。

继续
继续
继续

3. 限制连接数

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
http {
...
limit_conn_zone $binary_remote_addr zone=conn_one:10m; #每个IP地址连接数限制
limit_req_zone $binary_remote_addr zone=req_two:10m rate=1r/s; #每个IP一秒钟只处理1个请求

server {
listen 6060;
server_name localhost:6060;
location / {
root /var/www;

limit_conn conn_one 1;#指定一个IP只能同时存在1个连接

limit_req zone=req_two burst=2 nodelay; # 最多2个队列等待,其他请求会被丢弃

limit_rate 10k; # 每个连接的下载速度限制10k

}
}
}

测试并发

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$ ab -n 100 -c 10  http://192.168.0.30:6060/test.txt
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.30 (be patient).....done


Server Software: nginx
Server Hostname: 192.168.0.30
Server Port: 6060

Document Path: /test.txt
Document Length: 627 bytes

Concurrency Level: 10
Time taken for tests: 0.027 seconds
Complete requests: 100
# 97个请求失败
Failed requests: 97
(Connect: 0, Receive: 0, Length: 97, Exceptions: 0)
Non-2xx responses: 97
Total transferred: 36997 bytes
HTML transferred: 20311 bytes
Requests per second: 3700.00 [#/sec] (mean)
Time per request: 2.703 [ms] (mean)
Time per request: 0.270 [ms] (mean, across all concurrent requests)
Transfer rate: 1336.81 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.9 1 6
Processing: 1 2 1.2 1 6
Waiting: 0 1 0.8 1 4
Total: 1 2 1.5 2 8

Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 2
80% 3
90% 5
95% 6
98% 8
99% 8
100% 8 (longest request)

查看nginx的日志,一共97条错误日志,说明 zone “req_two”生效了:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
2020/05/22 16:48:10 [error] 11868#8704: *548 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *549 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *550 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *551 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *552 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *553 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *554 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *555 limiting requests, excess: 2.998 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *557 limiting requests, excess: 2.996 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *558 limiting requests, excess: 2.996 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *559 limiting requests, excess: 2.996 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *560 limiting requests, excess: 2.996 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *561 limiting requests, excess: 2.996 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *562 limiting requests, excess: 2.996 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *563 limiting requests, excess: 2.995 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *564 limiting requests, excess: 2.995 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *566 limiting requests, excess: 2.995 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *565 limiting requests, excess: 2.995 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *567 limiting requests, excess: 2.995 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *568 limiting requests, excess: 2.994 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *569 limiting requests, excess: 2.994 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *570 limiting requests, excess: 2.994 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *571 limiting requests, excess: 2.993 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *572 limiting requests, excess: 2.993 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *573 limiting requests, excess: 2.990 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *574 limiting requests, excess: 2.990 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *575 limiting requests, excess: 2.987 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *576 limiting requests, excess: 2.987 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *577 limiting requests, excess: 2.987 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *578 limiting requests, excess: 2.987 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *579 limiting requests, excess: 2.987 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *581 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *582 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *580 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *583 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *584 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *585 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *586 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *587 limiting requests, excess: 2.986 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *588 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *589 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *591 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *590 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *592 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *593 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *594 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *595 limiting requests, excess: 2.985 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *597 limiting requests, excess: 2.984 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *596 limiting requests, excess: 2.984 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *598 limiting requests, excess: 2.984 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *599 limiting requests, excess: 2.984 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *600 limiting requests, excess: 2.984 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *601 limiting requests, excess: 2.984 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *602 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *603 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *604 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *605 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *607 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *606 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *608 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *609 limiting requests, excess: 2.983 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *610 limiting requests, excess: 2.982 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *611 limiting requests, excess: 2.982 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *612 limiting requests, excess: 2.982 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *614 limiting requests, excess: 2.982 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *613 limiting requests, excess: 2.982 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *615 limiting requests, excess: 2.982 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *616 limiting requests, excess: 2.981 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *617 limiting requests, excess: 2.981 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *618 limiting requests, excess: 2.981 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *619 limiting requests, excess: 2.981 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *620 limiting requests, excess: 2.980 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *621 limiting requests, excess: 2.980 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *622 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *624 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *623 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *628 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *626 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *627 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *625 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *629 limiting requests, excess: 2.979 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *630 limiting requests, excess: 2.978 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *631 limiting requests, excess: 2.978 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *632 limiting requests, excess: 2.978 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *635 limiting requests, excess: 2.978 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *634 limiting requests, excess: 2.978 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *633 limiting requests, excess: 2.978 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *637 limiting requests, excess: 2.977 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *636 limiting requests, excess: 2.977 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *638 limiting requests, excess: 2.977 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *640 limiting requests, excess: 2.977 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *639 limiting requests, excess: 2.977 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *641 limiting requests, excess: 2.976 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *642 limiting requests, excess: 2.976 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *643 limiting requests, excess: 2.975 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *645 limiting requests, excess: 2.975 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"
2020/05/22 16:48:10 [error] 11868#8704: *644 limiting requests, excess: 2.975 by zone "req_two", client: 192.168.0.30, server: localhost:6060, request: "GET /test.txt HTTP/1.0", host: "192.168.0.30:6060"