dns 服务器性能

2015-05-06 16:50:16 +08:00
 holinhot

双 Intel Xeon E5 2650 v2
192 GB 内存
3x 500 SSD RAID0

这样一台权威服务器powerdns每秒可以处理多少次dns查询请求

5004 次点击
所在节点    DNS
17 条回复
acpp
2015-05-06 17:11:13 +08:00
看程序员的编码能力。。
holinhot
2015-05-06 17:35:45 +08:00
@acpp powerdns不是现成的吗
holinhot
2015-05-06 17:55:48 +08:00
试了下linode 最便宜的配置
queryperf -d test.txt -s 127.0.0.1

DNS Query Performance Testing Tool
Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $

[Status] Processing input data
[Status] Sending queries (beginning with 127.0.0.1)
[Status] Testing complete

Statistics:

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

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

RTT max: 0.004237 sec
RTT min: 0.000072 sec
RTT average: 0.000908 sec
RTT std deviation: 0.000456 sec
RTT out of range: 0 queries

Percentage completed: 100.00%
Percentage lost: 0.00%

Started at: Wed May 6 09:55:00 2015
Finished at: Wed May 6 09:55:00 2015
Ran for: 0.511937 seconds

Queries per second: 19533.653555 qps
holinhot
2015-05-06 17:59:17 +08:00
DNS Query Performance Testing Tool
Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $

[Status] Processing input data
[Status] Sending queries (beginning with 127.0.0.1)
[Status] Testing complete

Statistics:

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

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

RTT max: 0.028410 sec
RTT min: 0.000074 sec
RTT average: 0.000945 sec
RTT std deviation: 0.000482 sec
RTT out of range: 0 queries

Percentage completed: 100.00%
Percentage lost: 0.00%

Started at: Wed May 6 09:58:06 2015
Finished at: Wed May 6 09:58:57 2015
Ran for: 51.777396 seconds

Queries per second: 19313.447127 qps
mrhuiyu
2015-05-06 18:25:50 +08:00
@acpp 额,不是根据硬件配置和网络带宽吗?
holinhot
2015-05-06 18:42:43 +08:00
@mrhuiyu 肯定也有关的
acpp
2015-05-06 19:54:31 +08:00
@holinhot 你是要自己做一个dns服务器哦吗?
holinhot
2015-05-06 21:05:04 +08:00
@acpp 肯定啊
acpp
2015-05-06 23:42:46 +08:00
@holinhot 现在网上那么多,你自己做来干啥用啊,
Showfom
2015-05-07 00:07:18 +08:00
Raid0 。。。。硬盘坏了你会哭的
br00k
2015-05-07 01:07:48 +08:00
感觉瓶颈主要在带宽。。。
sdcg1994
2015-05-07 08:45:43 +08:00
因为有递归服务器缓存的缘故。。其实各根域名服务器和域名权威解析服务器的请求量没你想象的那么多
http://k.root-servers.org/statistics/ROOT/ip_protocols.html
貌似K根服务器的请求量也只有5万/s 左右
holinhot
2015-05-07 10:22:43 +08:00
@sdcg1994 那个qps是用来应对查询攻击的吧。正常情况下哪会1秒10w次
holinhot
2015-05-07 10:23:24 +08:00
@Showfom 我会告诉你我每部署一个节点只要几分钟吗
holinhot
2015-05-07 10:24:18 +08:00
@acpp 网上那些管理太麻烦了 比如我要导入1w个域名 修改5000个解析记录那是非常痛苦的
holinhot
2015-05-07 10:25:05 +08:00
@acpp 网上那些管理太麻烦了 比如我要导入1w个域名 修改5000个解析记录那是非常痛苦的
受制于人当然不行啊
acpp
2015-05-07 19:17:20 +08:00
@holinhot 弄站群的?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/188956

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX