A ninja pays half my rent
Ok, so my roomate (who finally moved in somewhat) is not a ninja. But be warned of what could happen when A Ninja Pays Half My Rent.
Ok, so my roomate (who finally moved in somewhat) is not a ninja. But be warned of what could happen when A Ninja Pays Half My Rent.
Pound is open source http load balancer. It acts as a reverse proxy in front of multiple web servers to distribute load across multiple web servers and also detects when a web server goes down and stops sending requests to that box.
Unlike Balance (a tcp load balancer/proxy server), Pound can do more http specifc things such as:
So on to the subject which is building pound on openbsd. Someone from the pound mailing list emailed me a question about building pound on openbsd, and since I remember how much of pain it was at first, I decided it is probably worth documenting somewhere.
There is a how-to in .rtf format that I found here. It is specifc to openbsd version 3.3 and some typos (not to mention its in .rtf) in the compile and make options which threw me for a loop since I am not a everyday C jockey. However this document did provide me with the info I needed , and I thank the author a ton since its the only doc I find on the subject.
Pound requires a version OpenSSL that is built with threading. Most BSD’s to my knowledge (OpenBSD, FreeBSD, not sure about NetBSD or Mac OSX) do not ship with a thread enabled OpenSSL (if you know why, let me know). So this means that you need to build a copy of OpenSSL with threads to build pound against. Lets start with that. OpenBSD 3.6 ships with OpenSSL 0.9.7d which is what I am going to use for this demo, I see to remember their being a bug with 0.9.7e that breaks this process so if you try 7e and fails, try 7d.