Hi,
On 08.10.2013 01:49, Sven Liedtke wrote: > Hi, > > i seem to have issues getting haproxy to run with more then maxconn > 1024 on openbsd 5.3 > You have to change Makefile.bsd -- SMALL_OPTS = -DBUFSIZE=8030 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=1024 -- e.g to -- SMALL_OPTS = -DBUFSIZE=16060 -DMAXREWRITE=10300 -DSYSTEM_MAXCONN=65530 -- Dont forget to make clean. > Even though i have: > > root@proxytest [haproxy] # sysctl | grep maxfiles > kern.maxfiles=20000 > > root@proxytest [haproxy] # ulimit -n > 20000 > > and in haproxy.cfg: > global > log /dev/log local0 debug > log /dev/log local1 info > maxconn 4096 > #chroot /usr/share/haproxy > user root > group wheel > daemon > > This is happening with 1.4.24 and 1.5-dev19 > > Anyone an idea? > and maybe some ulimits -- ulimit -d 3048576 ulimit -f 138192 ulimit -n 165500 ulimit -u 165500 -- and some sysctl values -- kern.maxfiles=90001 kern.maxproc=90001 kern.maxlocksperuid=100001 kern.maxclusters=100001 kern.somaxconn=32001 -- Be careful with pcre. Maybe you have to REGEX=... to whatever is working. If you use pf the dont use "scrub". Its nearly the same like using conntrack with Linux. > Regards, > Sven > > hope that helps you a bit. cheers thomas

