jamiroquai
V2EX  ›  DNS

如何调优 Bind9.10 的性能?

  •  
  •   jamiroquai · Jan 15, 2018 · 5743 views
    This topic created in 3050 days ago, the information mentioned may be changed or developed.

    我们做了一个比较简单的 DNS 可用性的监控,就是每秒跑一次 nslookup 查询某个域名,但是发现一天内会出现多次 time out 的情况,网络问题可以排除,感觉就是 Bind 的性能出现问题。我们使用的是 64C/128G 的机器,感觉到了 2W QPS 就上不去了,大家有什么调优的经验么?

    7 replies    2018-02-03 09:16:22 +08:00
    defunct9
        1
    defunct9  
       Jan 18, 2018 via iPhone   ❤️ 1
    开 ssh,我上去看看
    jamiroquai
        2
    jamiroquai  
    OP
       Jan 24, 2018
    @defunct9 内网环境,外面访问不了。。
    defunct9
        3
    defunct9  
       Jan 24, 2018
    没有经验
    jamiroquai
        4
    jamiroquai  
    OP
       Jan 30, 2018
    有个发现,修改 worker thread 后,性能明显提升,不过是从 64 个(虚拟 CPU 个数)改成 4 个
    johnjiang85
        5
    johnjiang85  
       Feb 1, 2018   ❤️ 1
    看楼主有没有二次开发能力,有的话就自己优化,有很多地方是可以优化的
    不然的话就是用 3.9 以上内核,开 reuseport
    openbaby
        6
    openbaby  
       Feb 2, 2018
    @johnjiang85 在 unbound 的配置文件里看到了开启 SO_REUSEPORT 的选项,请问 bind 如何开启呢?
    jamiroquai
        7
    jamiroquai  
    OP
       Feb 3, 2018
    @johnjiang85 能力没那么强,要二次开发还要走很长的路。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 06:00 · PVG 14:00 · LAX 23:00 · JFK 02:00
    ♥ Do have faith in what you're doing.