We've recently started running HAProxy load balancer in front of our Zope servers. We have 2 Zope servers with two threads each and currently have HAProxy configured as follows
server cms_instance1 app:18081 check downinter 10s maxconn 2 rise 1 slowstart 300s server cms_instance2 app:18082 check downinter 10s maxconn 2 rise 1 slowstart 300s
As each Zope instance is running 2 threads it made sense to me to follow suggestions I've seen online and set the lb maximum connections to 2 as well. However if you also have health checks configured doesn't this mean that sometimes Haproxy will have 3 connections to a Zope instance: 2 conections it's load balancing plus a health check?
In which case would it be better to set maxconn 1?