Skip to content

Instantly share code, notes, and snippets.

@nickva
Created September 27, 2023 03:06
Show Gist options
  • Save nickva/9d53e03e54fda24e77daa236b894a346 to your computer and use it in GitHub Desktop.
Save nickva/9d53e03e54fda24e77daa236b894a346 to your computer and use it in GitHub Desktop.
CouchDB Haproxy With Quick Client Disconnect
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
@nickva
Copy link
Author

nickva commented Sep 27, 2023

Capture traffic from both client <-> haproxy:5984 and haproxy <-> couchdb:15984 connections

tcp port 5984 or tcp port 15984

Screenshot 2023-09-26 at 11 10 04 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment