List Info

Thread: PRE-RELEASE: lighttpd-1.4.12-20060724-0947.tar.gz




PRE-RELEASE: lighttpd-1.4.12-20060724-0947.tar.gz
user name
2006-07-24 08:26:37
Dear lighties,

I just uploaded the 3rd pre-release of lighttpd 1.4.12:

http://www.lighttpd.net/download/lighttpd-1
.4.12-20060724-0947.tar.gz

I mainly got improvements for our mongrel users
(http://mongre
l.rubyforge.org/index.html)

I'm using it here against 2 mongrels:

$SERVER["socket"] == ":1446" {
  proxy-core.balancer = "round-robin"
  proxy-core.protocol = "http"
  proxy-core.backends = ( "127.0.0.1:3000",
"127.0.0.1:3001" )
}

$ RAILS_ENV="production" mongrel_rails start
--port 3000
$ RAILS_ENV="production" mongrel_rails start
--port 3001

The performance with of the RR-LB was tested with ab, run 3
times:

$ ab -c 20 -n 500 http://127.0.0.1:1446
/expenses/
  Requests per second:    22.67 [#/sec] (mean)
  Requests per second:    22.68 [#/sec] (mean)
  Requests per second:    22.97 [#/sec] (mean)

In top the cpu-time was split nicely:

  PID  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
31104 26748  23m 2468 S 42.6  3.4   0:30.09 mongrel_rails
31168 27216  23m 2472 R 40.3  3.4   0:30.10 mongrel_rails
28509  9728 4900 2600 S  5.6  0.7   0:03.91 lighttpd

Against a single mongrel, without lighty:

$ ab -c 20 -n 500 http://127.0.0.1:3000
/expenses/
  Requests per second:    20.51 [#/sec] (mean)
  Requests per second:    20.42 [#/sec] (mean)
  Requests per second:    20.65 [#/sec] (mean)

To get more background on mod_proxy_core check out:

- load-balancers (hash, fair, rr)
(http://blog.lighttpd.net/articles
/2006/07/19/hash-balancing-with-mod_proxy_core)
- scheduling in the plugin instead of the kernel
(http://blog.lighttpd.net/articles/2006/07/15/
the-new-mod_proxy_core)
- fail-over handling
- x-sendfile, x-rewrite-*
(http://blog.lighttpd.net/artic
les/2006/07/22/mod_proxy_core-got-x-sendfile-support
and
http://blog.lighttpd.net/articles/2
006/07/22/x-sendfiles-new-friend-x-rewrite)
- keep-alive for HTTP
- HTTP/1.1
- header-rewriting
(http://blog.lighttpd.net/articles/20
06/07/18/reverse-proxying-mod_proxy_core)


Jan

PRE-RELEASE: lighttpd-1.4.12-20060724-0947.tar.gz
user name
2006-07-25 20:30:55
On Mon, Jul 24, 2006 at 10:26:37AM +0200, Jan Kneschke
wrote:
> Dear lighties,
> 
> I just uploaded the 3rd pre-release of lighttpd 1.4.12:
> 
> http://www.lighttpd.net/download/lighttpd-1
.4.12-20060724-0947.tar.gz
> 
> I mainly got improvements for our mongrel users
> (http://mongre
l.rubyforge.org/index.html)
> 
> I'm using it here against 2 mongrels:
> 
> $SERVER["socket"] == ":1446" {
>   proxy-core.balancer = "round-robin"
>   proxy-core.protocol = "http"
>   proxy-core.backends = ( "127.0.0.1:3000",
"127.0.0.1:3001" )
> }
> 
> $ RAILS_ENV="production" mongrel_rails
start --port 3000
> $ RAILS_ENV="production" mongrel_rails
start --port 3001
> 
> The performance with of the RR-LB was tested with ab,
run 3 times:
> 
> $ ab -c 20 -n 500 http://127.0.0.1:1446
/expenses/
>   Requests per second:    22.67 [#/sec] (mean)
>   Requests per second:    22.68 [#/sec] (mean)
>   Requests per second:    22.97 [#/sec] (mean)
> 
> In top the cpu-time was split nicely:
> 
>   PID  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 31104 26748  23m 2468 S 42.6  3.4   0:30.09
mongrel_rails
> 31168 27216  23m 2472 R 40.3  3.4   0:30.10
mongrel_rails
> 28509  9728 4900 2600 S  5.6  0.7   0:03.91 lighttpd
> 
> Against a single mongrel, without lighty:
> 
> $ ab -c 20 -n 500 http://127.0.0.1:3000
/expenses/
>   Requests per second:    20.51 [#/sec] (mean)
>   Requests per second:    20.42 [#/sec] (mean)
>   Requests per second:    20.65 [#/sec] (mean)
> 
> To get more background on mod_proxy_core check out:
> 
> - load-balancers (hash, fair, rr)
> (http://blog.lighttpd.net/articles
/2006/07/19/hash-balancing-with-mod_proxy_core)
> - scheduling in the plugin instead of the kernel
> (http://blog.lighttpd.net/articles/2006/07/15/
the-new-mod_proxy_core)
> - fail-over handling
> - x-sendfile, x-rewrite-*
> (http://blog.lighttpd.net/artic
les/2006/07/22/mod_proxy_core-got-x-sendfile-support
> and
> http://blog.lighttpd.net/articles/2
006/07/22/x-sendfiles-new-friend-x-rewrite)
> - keep-alive for HTTP
> - HTTP/1.1
> - header-rewriting
> (http://blog.lighttpd.net/articles/20
06/07/18/reverse-proxying-mod_proxy_core)
> 
> 
> Jan

kqueue support seems to be broken..

Program received signal SIGSEGV, Segmentation fault.
0x01820a24 in fdevent_get_revents (ev=0x26324800,
event_count=1, revents=0x2afd2e40) at fdevent.c:216
216                     fdevent_revent *r =
revents->ptr[i];
(gdb) bt
#0  0x01820a24 in fdevent_get_revents (ev=0x26324800,
event_count=1, revents=0x2afd2e40) at fdevent.c:216
#1  0x01807178 in lighty_mainloop (srv=0x26324400) at
server.c:707
#2  0x01808b10 in main (argc=4, argv=0xffff5d64,
envp=0xffff5d78) at server.c:1387

and when using poll lighttpd feels slower than with 1.4.11,
though I do not have any benchmarks to back
this up. Last of all, I have a single alias in my config for
a cgi-bin dir which no longer works with
these snapshots of 1.4.12, I receive a 404 instead of the
directory contents.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )