- 论坛徽章:
- 0
|
[ALERT] 209/025649 (3097) : parsing haproxy.cfg : proxy 'admin_stats' has no dispatch address and is not in transparent or balance mode.
[ALERT] 209/025649 (3097) : Errors found in configuration file, aborting.
[ALERT] 209/025649 (3097) : Error reading configuration file : haproxy.cfg
我在配置haproxy负载均衡mysql时报上面错误,请教一下是什么原因。。
我的haproxy.cfg 的配置是:
defaults
log global
mode http
option httplog
option dontlognull
log 127.0.0.1 local0
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen admin_stats 192.168.18.120:80
mode http
stats uri /dbs
stats realm Global\ statistics
stats auth test:123456
listen proxy-mysql 0.0.0.0:23306
mode tcp
balance roundrobin
option httpchk OPTIONS * HTTP/1.1\r\nHost:\ www
server db01 192.168.18.117:3306 weight 1 check port 6033 inter 1s rise 2 fall 2
server db02 192.168.18.110:3306 weight 1 check port 6033 inter 1s rise 2 fall 2
option tcpka |
|