2 changed files with 38 additions and 1 deletions
@ -0,0 +1,31 @@
|
||||
## |
||||
## 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 |
||||
|
Loading…
Reference in new issue