Former-commit-id: d022edf4e3488792675189b634d5cea5c1f21fcb Former-commit-id: 9074ac64260118a63208941c54b862b5cdca21d9TSXN
parent
dac86505f5
commit
7c1f40278d
@ -1 +1,3 @@
|
||||
cockroach-data
|
||||
cockroach-data
|
||||
node2
|
||||
node3
|
@ -0,0 +1,23 @@
|
||||
|
||||
global
|
||||
maxconn 4096
|
||||
|
||||
defaults
|
||||
mode tcp
|
||||
# Timeout values should be configured for your specific use.
|
||||
# See: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#4-timeout%20connect
|
||||
timeout connect 10s
|
||||
timeout client 1m
|
||||
timeout server 1m
|
||||
# TCP keep-alive on client side. Server already enables them.
|
||||
option clitcpka
|
||||
|
||||
listen psql
|
||||
bind :26000
|
||||
mode tcp
|
||||
balance roundrobin
|
||||
option httpchk GET /health?ready=1
|
||||
server cockroach1 localhost:26257 check port 8801
|
||||
server cockroach2 localhost:26258 check port 8802
|
||||
server cockroach3 localhost:26259 check port 8803
|
||||
|
Loading…
Reference in new issue