Livid
403.84D
562.95D
V2EX  ›  DNS

dnslib

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