Open
Description
Title: Too Many Pending Connections
On a Couchdb cluster with three nodes, the number of connections in
CLOSE-WAIT state to one of the nodes gradually increases. This is
what I get right now (Couchdb has been running for about four days):
$ ss -nt | grep CLOSE-WAIT | wc -l
4514
$ ss -nt | grep CLOSE-WAIT | head
CLOSE-WAIT 1 0 192.168.40.2:35938 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:44694 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:60596 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:34240 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:40818 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:43376 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:56616 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:47966 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:48366 192.168.40.2:5984
CLOSE-WAIT 1 0 192.168.40.2:59302 192.168.40.2:5984
Maybe Couchdb does not close connections sometimes? We use Couchdb 3.3.3.