Livid
276.27D
572.64D
V2EX  ›  DNS

dnslib

  •  
  •   Livid ·
    PRO
    · Aug 30, 2012 · 4680 views
    This topic created in 5004 days ago, the information mentioned may be changed or developed.
    A simple library to encode/decode DNS wire-format packets.

    http://pypi.python.org/pypi/dnslib
    14 replies    1970-01-01 08:00:00 +08:00
    chuangbo
        1
    chuangbo  
       Aug 31, 2012
    DNS 压力上去后,瓶颈在 CPU,所以用 python 不是一个好选择。
    Livid
        2
    Livid  
    MOD
    OP
    PRO
       Aug 31, 2012
    @chuangbo 话说你们目前的系统在单台服务器上的 QPS 记录到多少了?
    chuangbo
        3
    chuangbo  
       Aug 31, 2012
    @Livid 要看是什么情况了。。
    gonbo
        4
    gonbo  
       Aug 31, 2012
    @chuangbo
    @Livid
    用现代工具比如redis,用内存cache一些计算结果,然后用pypy优化,python完全能够达到和C一个数量级的QPS。
    chuangbo
        5
    chuangbo  
       Aug 31, 2012
    @gonbo 比如 120w ?
    gonbo
        6
    gonbo  
       Aug 31, 2012
    120w 这个级别要上内核吧,我觉得10万这个级别python是可以到的。
    chuangbo
        7
    chuangbo  
       Aug 31, 2012
    @gonbo 内核是300多万。。
    Livid
        8
    Livid  
    MOD
    OP
    PRO
       Aug 31, 2012
    @chuangbo On one box?
    notedit
        9
    notedit  
       Aug 31, 2012
    @chuangbo
    @gonbo
    @Livid 可以看看章亦春刚刚发布的 https://github.com/agentzh/lua-resty-dns
    chuangbo
        10
    chuangbo  
       Aug 31, 2012
    @Livid (= ̄▽ ̄=)V
    Livid
        11
    Livid  
    MOD
    OP
    PRO
       Aug 31, 2012
    @chuangbo 是 x86_64 还是 T2000 那样的怪兽呢?
    chuangbo
        12
    chuangbo  
       Aug 31, 2012
    @Livid 怪兽部署很麻烦,虽然我们确实在折腾 Tilera64 这样的东西。最常见的至强8核 + 千M网卡就可以了。在 300万+ QPS 的攻击下,单机可以处理、返回 120 万 QPS。
    Livid
        13
    Livid  
    MOD
    OP
    PRO
       Aug 31, 2012
    @chuangbo 因为怪兽的 OS 不好使?
    chuangbo
        14
    chuangbo  
       Aug 31, 2012
    @Livid 因为是腾讯的机房、服务器、流程。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1140 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.