You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Mladen Turk <mt...@apache.org> on 2004/07/26 12:17:28 UTC

[PATCH] proxy lb support - step 1

Hi all,

There has been some serious discussion for building load balancing support
for mod_proxy.
Here is the first in series of patches that will enable this.

The patch adds lb support in scoreboard, so that statuses for each lb worker
can be calculated for each child process.
It uses optional function to retrieve the number of lb workers and
calculates the scoreboard size accordingly.

The other option is to rewrite the scoreboard functionality and use it
inside mod_proxy, but that will cause a strange shm locking observed on some
platforms using jk2 shared memory, cause we cannot create the shm in parent
process. 

Right now the lb_score only defines 1024 byte space, that can later be
replaced with real struct members once when the lb functionality gets
frozen.
For now we will simply cast that to the desired structure.

Regards,
MT.


Re: [PATCH] proxy lb support - step 1

Posted by Graham Leggett <mi...@sharp.fm>.
Mladen Turk wrote:

> The patch adds lb support in scoreboard, so that statuses for each lb worker
> can be calculated for each child process.
> It uses optional function to retrieve the number of lb workers and
> calculates the scoreboard size accordingly.

Will applying this patch to httpd v2.0 require an MMN bump?

Any objections to applying it to httpd v2.1 in the mean time?

Regards,
Graham
--