I have the following in my stats, and the below as my conf (running
1.4dev6, haven't gone to dev7 yet.)
==
pid = 14860 (process #1, nbproc = 1)
uptime = 0d 0h00m29s
system limits: memmax = unlimited; ulimit-n = 4023
maxsock = 4023; maxconn = 2000; maxpipes = 0
current conns = 164; current pipes = 0/0
Running tasks: 1/172
==
global
log /dev/log local0
user daemon
group daemon
pidfile /var/run/haproxy.pid
spread-checks 20
stats socket /tmp/haproxysock uid 2
defaults
mode tcp
log global
option tcplog
option dontlognull
# option dontlog-normal
option redispatch
option tcpka
retries 3
maxconn 4096
Why isn't my stats showing that my maxconn is not 4096 (or something
close to it)?
My /proc/sys/fs/file-max is 205714. But my ulimit -Hn (run as root)
shows 1024 though. So I don't know why maxconn would say 2000 either.
Finally, last I checked, there are "sockets per user" limit, "sockets
per process" limit, and a "sockets (or ports) per IP address" limit,
and a "sockets per computer" limit. I'm trying to balance them, and
if anyone has any suggestions (I realize w/out much info here about
what I'm doing), they are welcome.
Thank you,
PH