【问题标题】:How to load balance DNS servers behind Haproxy如何平衡 Haproxy 后面的 DNS 服务器
【发布时间】:2020-09-12 19:05:56
【问题描述】:

我正在尝试对运行在 3 台主机上的 DNS 服务器进行负载平衡,我这样做只是为了学习目的,实际上并不是为了对 DNS 服务器进行负载平衡,而是为了自学。

这是 Haproxy 配置:

global
    maxconn 4096

defaults
    mode http
    timeout connect 5s
    timeout client 50s
    timeout server 50s

listen http-in
    bind *:7953
    server rockpi  192.168.5.15:5335
    server oukitel.local  192.168.5.18:5335
    server localhost 192.168.5.28:5335

    stats enable
    stats uri /haproxy
    stats refresh 5s

但是当我尝试使用 haproxyip 进行挖掘时,它似乎不起作用:

$ dig yahoo.com @192.168.5.28 -p 7953

; <<>> DiG 9.16.1-Ubuntu <<>> yahoo.com @192.168.5.238 -p 7953
;; global options: +cmd
;; connection timed out; no servers could be reached

【问题讨论】:

    标签: haproxy


    【解决方案1】:

    HAProxy 是 TCP/HTTP 负载均衡器,不支持 UDP。

    【讨论】:

    猜你喜欢
    • 2013-10-23
    • 2022-01-05
    • 1970-01-01
    • 2014-12-11
    • 2014-03-26
    • 2021-09-06
    • 2016-03-23
    • 1970-01-01
    • 2011-01-06
    相关资源
    最近更新 更多