dns 压测

DNS压测工具querypref

安装

1
2
3
4
5
# wget https://downloads.isc.org/isc/bind9/9.11.14/bind-9.11.14.tar.gz
# tar zxvf bind-9.11.14.tar.gz
# cd bind-9.11.14/contrib/queryperf/
# sh configure
# make

准备压测文件

1
2
3
4
5
# vim queryfile.txt
dnspref.example.com.cn A
...
# wc -l queryfile.txt
1899450 queryfile.txt

开始压测

1
./queryperf -d queryfile.txt -s  10.10.10.1

压测结果

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
[Status] Testing complete

Statistics:

Parse input file: once
Ended due to: reaching end of file

Queries sent: 1899450 queries
Queries completed: 1899450 queries
Queries lost: 0 queries
Queries delayed(?): 0 queries

RTT max: 7.449286 sec
RTT min: 0.000050 sec
RTT average: 0.000756 sec
RTT std deviation: 0.016854 sec
RTT out of range: 92 queries

Percentage completed: 100.00%
Percentage lost: 0.00%

Started at: Mon Jan 6 15:34:17 2020
Finished at: Mon Jan 6 15:35:33 2020
Ran for: 76.191855 seconds

Queries per second: 24929.830098 qps
坚持原创技术分享,您的支持将鼓励我继续创作!