Re: Working on some load balancing methods

2005-01-08 Thread Ben Laurie
Jim Jagielski wrote: I'm currently working on code that extended the lb method within the 2.1/2.2 proxy from what is basically a weighted request count to also be a weighted traffic count (as measured by bytes transferred) and a weighted "load" count (as measured by response time). The former is fu

Re: How to change ap_document_root variable from a apache2 module ?

2005-01-08 Thread Xavier Beaudouin
Le 3 janv. 05, à 21:36, Geoffrey Young a écrit : This can be done quite safely in Apache1, by the way. I don't believe it can. Code? Well, since you don't need to worry about thread safety as long as you set it on every request, or reset it after each request you are fine. Something like: foo

Re: Working on some load balancing methods

2005-01-08 Thread Theo Schlossnagle
On Jan 7, 2005, at 4:14 PM, Sander Striker wrote: From: Jim Jagielski [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 8:52 PM To: dev@httpd.apache.org Subject: Working on some load balancing methods I'm currently working on code that extended the lb method within the 2.1/2.2 proxy from wha

Re: Dumb APR_BUCKET_BUFF_SIZE question

2005-01-08 Thread Rasmus Lerdorf
Cliff Woolley wrote: It might be. We've considered having it be configurable before. There are just a lot of implications in changing the value; for example, it affects the memory footprint of the server, it affects how much data gets read in to memory per read() call on a file bucket (which migh

Re: Dumb APR_BUCKET_BUFF_SIZE question

2005-01-08 Thread Cliff Woolley
On Fri, 7 Jan 2005, Rasmus Lerdorf wrote: > I still think it would be worthwhile to make it configurable. Linux or > FreeBSD5 on IA64 with 16k pages, for example, might show some decent > gains by setting that to 15000. Or do a getpagesize() call on startup > to determine it dynamically. It mig

Re: Working on some load balancing methods

2005-01-08 Thread Dirk-Willem van Gulik
On Fri, 7 Jan 2005, Jim Jagielski wrote: > I'm currently working on code that extended the lb method within the > 2.1/2.2 proxy from what is basically a weighted request count to also be > a weighted traffic count (as measured by bytes transferred) and a > weighted "load" count (as measured by r

Re: Dumb APR_BUCKET_BUFF_SIZE question

2005-01-08 Thread Dirk-Willem van Gulik
On Fri, 7 Jan 2005, Rasmus Lerdorf wrote: > Why is it hardcoded to be 8000? It would seem like you could easily be > unlucky and just miss the cutoff and end up with a 6000 byte heap bucket > followed by a 3000 byte transient bucket, for example, as a result of 3 > 3000 byte ap_rwrites. For th

Re: Working on some load balancing methods

2005-01-08 Thread Mladen Turk
Jim Jagielski wrote: I'm currently working on code that extended the lb method within the 2.1/2.2 proxy from what is basically a weighted request count to also be a weighted traffic count (as measured by bytes transferred) and a weighted "load" count (as measured by response time). Sure, the genera