Lighttpd
Posted by Daniel Lyons Thu, 11 Oct 2007 01:41:00 GMT
I’ve been playing around with lighttpd on another project. This server is seriously fast. With PHP through FastCGI, it’s really astonishingly quick even on a rather bland VPS server.
For more performance I am tinkering around with eAccelerator for PHP bytecode caching. That should eliminate most of the PHP parsing/interpreting cost. Not that I can even notice it now.
But you can go even further with mod_magnet. They don’t yet have a great introduction or explanation of what mod_magnet is, but it seems to be compiled, limited Lua scripting inside the request handling. This apparently beats the socks off talking to PHP, especially since it can reassemble output from its own file caches or memcached. On the wiki above they managed to get a script that was capable of a not-to-shabby 100 requests/second and make the server serve pages at 4200 requests/second. Another script is made to serve 10,000 requests/second.
I have to wonder whether or not this could be used with Voltaire. It would certainly be pretty fast…

I’m very tempted to just go with lighttpd for the next server, honestly. It’s amazingly better under load than Apache. Since many of our recent problems have been based on HTTP load, something that deals better would be appreciated.
Think it’s up to the task?