× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Found the solution. Turns out there is a new module that needs to be
included, as follows:

LoadModule lbmethod_byrequests_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM



Aaron Bartell

On Tue, Jul 21, 2015 at 9:37 AM, Aaron Bartell <aaronbartell@xxxxxxxxx>
wrote:

Heyo,

I am trying to setup a proxy balancer and am getting an error of "Cannot
find byrequests lb method" with the below httpd.conf. I am on v7.2 and
have the latest PTFs installed (level 9 for SF99713) as of last night. If
I comment out the BalancerMember lines the error goes away, but I need
those lines :-) It tells me to add a directive, but the directive syntax
isn't correct, and I already have module proxy_balancer_module specified.

Anybody see something wrong with what I am doing?

p.s. I included steps to recreate issue at bottom of email.

---- httpd.conf ----
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_balancer_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM

Listen *:80
DocumentRoot /www/s1/htdocs

RewriteRule ^(.*) balancer://cluster/ [P]
ProxyPassReverse / balancer://cluster
<Proxy balancer://cluster>
BalancerMember http://127.0.0.1:50002/
BalancerMember http://127.0.0.1:50003/
</Proxy>



---- WRKSPLF QTMHHTTP ----
HTP8989 Diagnostic 40 07/21/15 16:08:44.768544 QZSRAPR
QHTTPSVR *STMT QZSRCORE QHTTPSVR *STMT
From module . . . . . . . . :
QZSRSNDM
From procedure . . . . . . :
sendMessageToJobLog_CCSID
Statement . . . . . . . . . : 27

To module . . . . . . . . . :
PROXY_UTIL
To procedure . . . . . . . :
ap_proxy_define_balancer
Statement . . . . . . . . . : 19

Message . . . . : Cannot find
byrequests lb method. Add directive
'LoadModule module
proxy_balancer_module

/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM' to configuration.

Cause . . . . . : This message is
used as a general diagnostic message


---- Recreate issue ----
ADDPFM FILE(QUSRSYS/QATMHINSTC) MBR(BALANCE) TEXT('BALANCE')
UPDDTA FILE(QUSRSYS/QATMHINSTC) MBR(BALANCE)
-apache -d /www/s1 -f conf/httpd.conf -AutoStartN

mkdir -p /www/s1/conf
mkdir -p /www/s1/logs
mkdir -p /www/s1/htdocs
cat >> /www/s1/conf/httpd.conf << EOF
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_balancer_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM

Listen *:80
DocumentRoot /www/s1/htdocs

RewriteRule ^(.*) balancer://cluster/ [P]
ProxyPassReverse / balancer://cluster
<Proxy balancer://cluster>
BalancerMember http://127.0.0.1:50002/
BalancerMember http://127.0.0.1:50003/
</Proxy>
EOF


STRTCPSVR SERVER(*HTTP) INSTANCE(BALANCE)

Aaron Bartell
litmis.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.