You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
827 B
32 lines
827 B
8 years ago
|
##
|
||
|
## cockroach-haproxy.cfg -- HAProxy server configuration for CockroachDB cluster
|
||
|
##
|
||
|
|
||
|
global
|
||
|
daemon
|
||
|
log 127.0.0.1 local0 notice
|
||
|
user @l_nusr@
|
||
|
group @l_ngrp@
|
||
|
maxconn 4096
|
||
|
|
||
|
defaults
|
||
|
log global
|
||
|
mode tcp
|
||
|
option httplog
|
||
|
option dontlognull
|
||
|
retries 3
|
||
|
redispatch
|
||
|
maxconn 2000
|
||
|
timeout connect 5s
|
||
|
timeout client 60s
|
||
|
timeout server 60s
|
||
|
|
||
|
listen cockroach 127.0.0.1:26257
|
||
|
mode tcp
|
||
|
balance roundrobin
|
||
|
server server1 127.0.0.1:26258 check inter 2000 rise 2 fall 5
|
||
|
server server2 127.0.0.1:26259 check inter 2000 rise 2 fall 5
|
||
|
server server3 127.0.0.1:26260 check inter 2000 rise 2 fall 5
|
||
|
timeout server 20s
|
||
|
|