You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Vinicius Petrucci <vp...@gmail.com> on 2008/03/27 18:20:21 UTC
updating workers' lbfactor
-- sorry in the case of duplicate messages --
Hi,
I notice that in mod_proxy_balancer the workers' lbfactors is
dynamically updated without any critical section lock between the
call. That is, simply:
wsel->s->lbfactor = ival;
Quick question: If I am planning to change the lbfactors in my own
apache module, is there any critical issue? I think the
balancer-manager could cause some problems. Should I put locks in
those sections (when updating the lbfactors)?
Thanks.
--
Vinicius
Re: updating workers' lbfactor
Posted by Ruediger Pluem <rp...@apache.org>.
On 03/27/2008 06:20 PM, Vinicius Petrucci wrote:
> -- sorry in the case of duplicate messages --
>
>
> Hi,
>
> I notice that in mod_proxy_balancer the workers' lbfactors is
> dynamically updated without any critical section lock between the
> call. That is, simply:
>
> wsel->s->lbfactor = ival;
IMHO this should be an atomic operation. So no need for locks.
Regards
RĂ¼diger