V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
holinhot
V2EX  ›  DNS

dns 服务器性能

  •  
  •   holinhot · 2015-05-06 16:50:16 +08:00 · 4903 次点击
    这是一个创建于 3280 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    17 条回复    2015-05-07 19:17:20 +08:00
    acpp
        1
    acpp  
       2015-05-06 17:11:13 +08:00
    看程序员的编码能力。。
    holinhot
        2
    holinhot  
    OP
       2015-05-06 17:35:45 +08:00
    @acpp powerdns不是现成的吗
    holinhot
        3
    holinhot  
    OP
       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
        4
    holinhot  
    OP
       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
        5
    mrhuiyu  
       2015-05-06 18:25:50 +08:00
    @acpp 额,不是根据硬件配置和网络带宽吗?
    holinhot
        6
    holinhot  
    OP
       2015-05-06 18:42:43 +08:00
    @mrhuiyu 肯定也有关的
    acpp
        7
    acpp  
       2015-05-06 19:54:31 +08:00   ❤️ 1
    @holinhot 你是要自己做一个dns服务器哦吗?
    holinhot
        8
    holinhot  
    OP
       2015-05-06 21:05:04 +08:00
    @acpp 肯定啊
    acpp
        9
    acpp  
       2015-05-06 23:42:46 +08:00
    @holinhot 现在网上那么多,你自己做来干啥用啊,
    Showfom
        10
    Showfom  
       2015-05-07 00:07:18 +08:00
    Raid0 。。。。硬盘坏了你会哭的
    br00k
        11
    br00k  
       2015-05-07 01:07:48 +08:00
    感觉瓶颈主要在带宽。。。
    sdcg1994
        12
    sdcg1994  
       2015-05-07 08:45:43 +08:00
    因为有递归服务器缓存的缘故。。其实各根域名服务器和域名权威解析服务器的请求量没你想象的那么多
    http://k.root-servers.org/statistics/ROOT/ip_protocols.html
    貌似K根服务器的请求量也只有5万/s 左右
    holinhot
        13
    holinhot  
    OP
       2015-05-07 10:22:43 +08:00
    @sdcg1994 那个qps是用来应对查询攻击的吧。正常情况下哪会1秒10w次
    holinhot
        14
    holinhot  
    OP
       2015-05-07 10:23:24 +08:00
    @Showfom 我会告诉你我每部署一个节点只要几分钟吗
    holinhot
        15
    holinhot  
    OP
       2015-05-07 10:24:18 +08:00
    @acpp 网上那些管理太麻烦了 比如我要导入1w个域名 修改5000个解析记录那是非常痛苦的
    holinhot
        16
    holinhot  
    OP
       2015-05-07 10:25:05 +08:00
    @acpp 网上那些管理太麻烦了 比如我要导入1w个域名 修改5000个解析记录那是非常痛苦的
    受制于人当然不行啊
    acpp
        17
    acpp  
       2015-05-07 19:17:20 +08:00
    @holinhot 弄站群的?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1280 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:48 · PVG 01:48 · LAX 10:48 · JFK 13:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.