下午好。我正在尝试使用Haproxy使Apache钻研高可用性。我非常怀疑。请让我知道Drill是否支持使用Haproxy的高可用性。
答案 0 :(得分:1)
开发人员和用户邮件线程讨论了相同的问题。这是相同的链接。
https://mail-archives.apache.org/mod_mbox/drill-user/201808.mbox/browser
答案 1 :(得分:0)
使用HAproxy
frontend apache-drill-ui
description "Apache Drill UI"
bind *:8047
default_backend apache-drill-ui
frontend apache-drill-sql
description "Apache Drill SQL"
bind *:31010
mode tcp
option tcplog
default_backend apache-drill-sql
backend apache-drill-ui
description "Apache Drill UI"
balance roundrobin
option httpchk GET /status
http-check expect string Running
acl internal_networks src 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 127.0.0.1
http-request deny if ! internal_networks
server ICCCAPANA204 100.65.xx.xx:8047 check
server ICCCAPANA205 100.65.xx.xx:8047 check
# server docker docker:8047 check
server 100.65.xxx.xx 100.65.xxx.xx:8047 check
backend apache-drill-sql
description "Apache Drill SQL"
balance roundrobin
mode tcp
option tcplog
acl internal_networks src 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 127.0.0.1
tcp-request content reject if ! internal_networks
option httpchk GET /status
http-check expect string Running
server ICCCAPANA204 100.65.xxx.xx:31010 check port 8047
server ICCCAPANA205 100.65.xxx.xx:31010 check port 8047
# server docker docker:31010 check port 8047
server 100.65.212.28 100.65.xxx.xx:31010 check port 8047