Last active
October 19, 2020 02:30
-
-
Save jeongho/9bd35184a189665e75ac to your computer and use it in GitHub Desktop.
haproxy config for Cloudera
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#yum install haproxy | |
#configure haproxy-cloudera.cfg | |
#haproxy -f /etc/haproxy/haproxy-cloudera.cfg | |
#http://seawolf-3.vpc.wonderland.com:1936/ | |
#https://cbonte.github.io/haproxy-dconv/ | |
global | |
daemon | |
nbproc 1 | |
maxconn 100000 | |
log 127.0.0.1 local6 debug | |
#log /dev/log local6 | |
defaults | |
log global | |
mode tcp | |
option tcplog | |
option tcpka | |
option dontlognull | |
timeout connect 5000 | |
timeout server 50000 | |
timeout client 50000 | |
frontend oozie | |
bind 0.0.0.0:11000 | |
default_backend oozie_servers | |
mode http | |
option httplog | |
backend oozie_servers | |
#balance leastconn | |
balance roundrobin | |
mode http | |
option httplog | |
server oozie_1 seawolf-1.vpc.wonderland.com:11000 check | |
server oozie_2 seawolf-2.vpc.wonderland.com:11000 check | |
server oozie_4 seawolf-4.vpc.wonderland.com:11000 check | |
frontend hue | |
bind 0.0.0.0:80 | |
default_backend hue_servers | |
mode http | |
option http-server-close | |
timeout http-request 5s | |
backend hue_servers | |
balance source | |
mode http | |
option http-server-close | |
server hue_1 seawolf-1.vpc.wonderland.com:8888 cookie ServerA check inter 2000 fall 3 | |
server hue_2 seawolf-2.vpc.wonderland.com:8888 cookie ServerB check inter 2000 fall 3 | |
# This is the setup for Impala. Impala client connect to load_balancer_host:25003. | |
# HAProxy will balance connections among the list of servers listed below. | |
# The list of Impalad is listening at port 21000 for beeswax (impala-shell) or original ODBC driver. | |
# For JDBC or ODBC version 2.x driver, use port 21050 instead of 21000. | |
##listen impala :25003 | |
listen impala | |
bind 0.0.0.0:25003 | |
mode tcp | |
option tcplog | |
balance leastconn | |
server impala_1 seawolf-1.vpc.wonderland.com:21000 check | |
server impala_2 seawolf-2.vpc.wonderland.com:21000 check | |
server impala_3 seawolf-3.vpc.wonderland.com:21000 check | |
server impala_4 seawolf-4.vpc.wonderland.com:21000 check | |
listen stats :1936 | |
mode http | |
stats enable | |
stats uri / | |
stats hide-version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment