【发布时间】: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