Skip to content

Instantly share code, notes, and snippets.

@jimsander
Created October 3, 2012 03:10
Show Gist options
  • Save jimsander/3824733 to your computer and use it in GitHub Desktop.
Save jimsander/3824733 to your computer and use it in GitHub Desktop.
root@ny01goi5046 ~]# telnet 10.181.178.110 2013
Trying 10.181.178.110...
Connected to KM-a (10.181.178.110).
Escape character is '^]'.
^]
telnet> quit
Connection closed.
[root@ny01goi5046 ~]# telnet 10.181.178.111 2013
Trying 10.181.178.111...
Connected to KM-b (10.181.178.111).
Escape character is '^]'.
^]
telnet> quit
Connection closed.
[root@ny01goi5046 ~]#
[root@ny01goi5046 ~]# telnet localhost 2013
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
global
log 127.0.0.1 local1 info
maxconn 100000
user haproxy
group haproxy
#nbproc 2
#ulimit-n 160000
stats socket /var/tmp/haproxy_stats level admin user haproxy
spread-checks 5
defaults
log global
mode http
option dontlognull
balance leastconn
retries 5
timeout connect 120s
backlog 10000
#timeout client 60000
#timeout server 60000
timeout queue 30s
#option httplog
option httpchk GET /ping
option contstats
option redispatch
option logasap
frontend km-fe
bind *:2013
mode tcp
option contstats
option redispatch
option logasap
default_backend km-be
timeout client 120s
option tcp-smart-accept
option tcp-smart-connect
backend km-be
balance leastconn
mode tcp
timeout server 120s
option redispatch
server km-a 10.181.178.110:2013 weight 1 maxconn 4096 check inter 1m
server km-b 10.181.178.111:2013 weight 1 maxconn 4096 check inter 1m
frontend riak-fe
bind *:8098
mode http
option httplog
option contstats
option redispatch
option logasap
default_backend riak-be
timeout client 120s
backend riak-be
balance leastconn
mode http
timeout server 120s
option redispatch
server riak-a 10.181.178.116:8098 weight 1 maxconn 4096 check inter 1m
server riak-b 10.181.178.117:8098 weight 1 maxconn 4096 check inter 1m
server riak-c 10.181.178.118:8098 weight 1 maxconn 4096 check inter 1m
listen admin 0.0.0.0:22002
mode http
stats uri /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment