You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rapp, James" <ja...@sap.com> on 2012/12/17 23:52:04 UTC
[users@httpd] Apache 2.4.3 - Mod_proxy_balancer + mod_lbmethod_bybusyness
Hello,
I'm hoping for a quick sanity check on a mod_proxy configuration I am attempting. I'd like to configure a Reverse Proxy with load balancing based on lbmethod=bybusyness and have the following in httpd.conf:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
<Proxy balancer://loadbalancer>
BalancerMember http://machine1.example.com:8080/ max=64 connectiontimeout=1200 keepalive=on route=machine1
BalancerMember http://machine2.example.com:8080/ max=64 connectiontimeout=1200 keepalive=on route=machine2
ProxySet lbmethod=bybusyness
ProxySet stickysession=JSESSIONID
</Proxy>
When I try to start httpd it complains:
AH00526: Syntax error on line 528 of C:/Apache24/conf/httpd.conf:
BalancerMember Can't find 'byrequests' lb method
I searched the archive and only find a couple of hits where people did not define the lbmethod (thus using the default of byrequests) and needed to load :
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
However I do not want to use 'byrequests' ...
When I comment in mod_lbmethod_byrequests.so (and mod_slotmem_shm.so) Apache starts. Balancer-manager shows me the lbmethod is 'bybusyness' as expected.
My question is:
Is mod_lbmethod_byrequests.so required for all balancer configurations or did I miss something from my configuration above?
Thanks,
James Rapp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] RE: Apache 2.4.3 - Mod_proxy_balancer + mod_lbmethod_bybusyness
Posted by Eric Covener <co...@gmail.com>.
* NOTE: The default method is byrequests, which we assume
* exists!
*/
lbmethod = ap_lookup_provider(PROXY_LBMETHOD, "byrequests", "0");
if (!lbmethod) {
return "Can't find 'byrequests' lb method";
}
On Fri, Dec 28, 2012 at 10:55 AM, Rapp, James <ja...@sap.com> wrote:
> Hello,
>
> Can anyone comment on this behavior?
>
> On Monday, December 17, 2012 at 3:52 PM James Rapp wrote:
>
>> <Proxy balancer://loadbalancer>
>
>> BalancerMember http://machine1.example.com:8080/ max=64 connectiontimeout=1200 keepalive=on route=machine1
>> BalancerMember http://machine2.example.com:8080/ max=64 connectiontimeout=1200 keepalive=on route=machine2
>
>> ProxySet lbmethod=bybusyness
>> ProxySet stickysession=JSESSIONID
>> </Proxy>
>
>> When I try to start httpd it complains:
>
>> AH00526: Syntax error on line 528 of C:/Apache24/conf/httpd.conf:
>> BalancerMember Can't find 'byrequests' lb method
>
>> I searched the archive and only find a couple of hits where people did not define the lbmethod (thus using the default of byrequests) and needed to load :
>
>> #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
>
>> However I do not want to use 'byrequests' ...
>
> If mod_lbmethod_byrequests.so is required for all mod_proxy_balancer methods it will require an update to the 2.4 docs. If not, can someone suggest a configuration change?
>
> Thanks,
> James Rapp
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] RE: Apache 2.4.3 - Mod_proxy_balancer + mod_lbmethod_bybusyness
Posted by "Rapp, James" <ja...@sap.com>.
Hello,
Can anyone comment on this behavior?
On Monday, December 17, 2012 at 3:52 PM James Rapp wrote:
> <Proxy balancer://loadbalancer>
> BalancerMember http://machine1.example.com:8080/ max=64 connectiontimeout=1200 keepalive=on route=machine1
> BalancerMember http://machine2.example.com:8080/ max=64 connectiontimeout=1200 keepalive=on route=machine2
> ProxySet lbmethod=bybusyness
> ProxySet stickysession=JSESSIONID
> </Proxy>
> When I try to start httpd it complains:
> AH00526: Syntax error on line 528 of C:/Apache24/conf/httpd.conf:
> BalancerMember Can't find 'byrequests' lb method
> I searched the archive and only find a couple of hits where people did not define the lbmethod (thus using the default of byrequests) and needed to load :
> #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
> However I do not want to use 'byrequests' ...
If mod_lbmethod_byrequests.so is required for all mod_proxy_balancer methods it will require an update to the 2.4 docs. If not, can someone suggest a configuration change?
Thanks,
James Rapp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org