Created
September 27, 2023 03:06
-
-
Save nickva/9d53e03e54fda24e77daa236b894a346 to your computer and use it in GitHub Desktop.
CouchDB Haproxy With Quick Client Disconnect
This file contains hidden or 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
global | |
maxconn 10000 | |
spread-checks 5 | |
defaults | |
mode http | |
log global | |
option httplog | |
log stdout format raw local0 | |
balance roundrobin | |
option redispatch | |
retries 4 | |
timeout client 150s | |
timeout server 360s | |
timeout connect 500 | |
option abortonclose | |
frontend http-in | |
option clitcpka | |
clitcpka-cnt 3 | |
clitcpka-intvl 1s | |
clitcpka-idle 3s | |
bind *:5984 | |
default_backend servers | |
backend servers | |
option httpchk GET /_up | |
server node1 127.0.0.1:15984 check inter 600s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Capture traffic from both client <-> haproxy:5984 and haproxy <-> couchdb:15984 connections