httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: creating new lbmethod for mod_proxy_balancer
Date Mon, 25 Sep 2006 14:57:51 GMT
On 25.09.2006 16:43, Garrett Rooney wrote:
> On 9/25/06, Ruediger Pluem <rpluem@apache.org> wrote:
> 
>> On 25.09.2006 16:32, Garrett Rooney wrote:
>> > On 9/25/06, Jim Jagielski <jim@jagunet.com> wrote:
>> >
>> >> Actually, I've added the 'busy' struct element which
>> >> could be used for that... The orig intent was to add
>> >> the mod_jk "busyness" LB method, but it would also
>> >> serve as a flag that the member is busy ;)
>> >>
>> >> As of now, neither Trunk or 2.2.x do anything with busy,
>> >> but that will change soon :)
>> >
>> >
>> > How is that flag shared across worker processes?  Is that structure
>> > stored in shared memory or something?
>>
>> It is shared via the scoreboard along with all other worker
>> interprocess data
>> like status of the worker etc.
> 
> 
> Ahh, cool.  That will come in handy for the fastcgi stuff if I ever
> get back to it...

After having a look in the code I am just wondering why we do not have any
locks around when changing this shared data / do not use atomics when increasing
e.g the value for the number of read bytes (worker->s->read). Is this correct?

Regards

RĂ¼diger


Mime
View raw message