(Sorry about top posting...haven't fixed my Outlook yet to quote properly) That fixed it. I also bumped kern.maxfiles in my /etc/sysctl.conf file.
Thanks! --Brian -----Original Message----- From: Willy Tarreau [mailto:[email protected]] Sent: Tuesday, October 27, 2009 3:32 PM To: McCann, Brian Cc: [email protected] Subject: Re: HAProxy on OpenBSD Hi Brian, On Mon, Oct 26, 2009 at 02:18:09PM -0400, McCann, Brian wrote: > Hi all. I'm trying to setup HAProxy on OpenBSD and I'm having some problems. > I can't seem to get it to accept a maxconn value larger than 1024. When I > run it set to 4096 for example, I get the following: > > [ALERT] 298/135514 (16435) : parsing [/etc/haproxy/haproxy.cfg:5] : maxconn > value 4096 too high for this system. Limiting to 1024. Please use '-n' to > force the value. > > I don't quite get why...I checked kern.maxfiles, and that's set to 8192. > Anyone have any ideas? Most likely you're not running haproxy as root, and your user is limited to 1024 file descriptors, reason why haproxy failed to bump the limit. Please run "ulimit -n" in your shell. I'm pretty sure you'll see 1024 here. If you're not root, you need the root user to adjust it for you in some shell script run at the session opening (I don't remember where that's done on OpenBSD, sorry). When starting as root, you don't have to worry about that, as haproxy does it for you. Regards, Willy

