PRE-RELEASE: lighttpd-1.5.0-r1435.tar.gz 5

Posted by jan Tue, 14 Nov 2006 01:37:00 GMT

Yeah, really.

Before you jump around and empty a barrel of beer, try to compile it first. :)

Download: http://www.lighttpd.net/download/lighttpd-1.5.0-r1435.tar.gz

Finally I got some time to finish the loose ends of 1.5.0. MySQL Network MAS is going to release (hopefully) next week, giving me time to work on lighty again.

What works and what doesn’t ?

  • mod_fastcgi, mod_cgi, mod_scgi, mod_proxy are removed
    • mod_proxy_core is the replace for the above plugins
    • you have to spawn fastcgi processes with spawn-fcgi
  • mod_cml is removed and mod_magnet isn’t included yet

Linux AIO

I blogged about Linux AIO before, now you can try it out. Install libaio and build lighttpd with—with-linux-aio.

server.network-backend = "linux-aio-sendfile" 

mod-proxy-core

I checked that balancing and uploading works nicely work mod-proxy-core with fastcgi and http as protocols.

PHP

Start PHP with spawn-fcgi as documented in the manual and add

$HTTP["url"] =~ "\.php$" {
  proxy-core.balancer = "round-robin" 
  proxy-core.protocol = "fastcgi" 
  proxy-core.backends = ( "127.0.0.1:1026" )
  proxy-core.max-pool-size = 16
}

the to config.

BTW: we use FCGI_KEEP_CONN to keep the connection between lighttpd and the FsatCGI backend up as long as possible.

HTTP (mongrel)

We use keep-alive and HTTP/1.1 by default. Give it a try.

$SERVER["socket"] == ":1445" {
  proxy-core.protocol = "http" 
#  proxy-core.balancer = "round-robin" 
  proxy-core.balancer = "sqf" 
  proxy-core.backends = (
    "10.0.0.10:80", 
    "10.0.0.11:80" )
}

sqf is Shortest Queue First and is the preferred balancer if you have backends which different CPUs. See the next blog-post.

mod-upload-progress

Works.

Trackbacks

Use the following link to trackback from your own site:
http://blog.lighttpd.net/articles/trackback/2225

  1. If you use lighttpd as a proxy server, instead of using the FastCGI bindings, then you’ll find that my action_cache code to use X-Sendfile doesn’t work. The switch I was using to enable this feature was set in the process environment w...
Comments

Leave a response

  1. JD Tue, 14 Nov 2006 03:21:37 GMT
    Much congratulations on getting this out the door! Compilation is complete, barrel of beer is being emptied...
  2. Vladimir Tue, 14 Nov 2006 06:42:30 GMT
    !!! Champagne is better... !!! Q: May I use Unix Socket for FCGI?
  3. Eric Tue, 14 Nov 2006 06:45:02 GMT
    based on my testing, aio-sendfile is still broken. md5sum show file was changed during transfer from 1.5 with aio enabled
  4. vladimir Wed, 15 Nov 2006 10:04:37 GMT
    Fedora Core 5: files altered with aio; index-file.names not taking into consideration for PHP handlers;
  5. cyberty@gmail.com Wed, 15 Nov 2006 18:31:44 GMT
    Thank you for your great work. I have tried lighttpd-1.5.0-r1435, speed limit(connection.kbytes-per-second) is not working.
Comments