Load balancing proxy pass and reverse proxy pass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Our application is running with a apache webserver and 2 instances of weblogic server.

localhost1- weblogic
localhost2 - weblogic

Now we are trying to replace localhost2 with tomcat and do clustering.

The following configuration was with out clustering :

We have the following configuration :

Load balancing for localhost1 was done here.

 <Proxy balancer://cluster>
         BalancerMember ajp://localhost1:port/xxx route=server_1 loadfactor=33 retry=60
         BalancerMember ajp://localhost1:port/xxx route=server_2 loadfactor=33 retry=60
         BalancerMember ajp://localhost1:port/xxx route=server_3 loadfactor=33 retry=60
         BalancerMember ajp://localhost1:port/xxx route=server_4 loadfactor=33 retry=60
         BalancerMember ajp://localhost1:port/xxx route=server_5 loadfactor=33 retry=60
     
         #load balancing performed based on number of user requests
         ProxySet lbmethod=byrequests
         # Report server is for Report purpose only so balancing is required now.
          </Proxy>

requests to localhost2 are forwarded only when user requests for certain functionality after logging in to localhost1. i.e..when a user hits the dns, the request is forwarded to one of the localhost1s that are clustered and from there when the user is trying to access certain pages, The request will be redirected to localhost2s via proxy pass settings that are set as following :

 ProxyPass /xxx/xxx//viewGenericReport.jsp http://localhost2:xxx/eMatrix/jsp/mars/general/genericReport/viewGenericReport.
jsp
            ProxyPassReverse /eMatrix/jsp/mars/general/genericReport/viewGenericReport.jsp http://localhost2:xxx/viewGenericReport.jsp
            ProxyPass /eMatrix/jsp/mars/general/genericReport/viewGenericReportnogzip.jsp http://localhost2:xxx/eMatrix/jsp/viewGenericReportnogzip.jsp
            ProxyPassReverse /eMatrix/jsp/mars/general/genericReport/viewGenericReportnogzip.jsp http://localhost2:xxx/viewGenericReportnogzip.jsp
            ProxyPass //hybridReport/ http://localhost2:xxx//hybridReport
        ProxyPassReverse /hybridReport/ http://localhost2:xxx/hybridReport/
        ProxyPass /CRReport.jsp http://localhost2:xxx/CRReport.jsp
        ProxyPassReverse /CRReport.jsp http://localhost2:xxx//CRReport.jsp
        ProxyPass /crProcessForwardReport.jsp http://localhost2:xxx/crProcessForwardReport.jsp
        ProxyPassReverse /crProcessForwardReport.jsp http://localhost2:xxx/crProcessForwardReport.jsp
        ProxyPass /iaProcessForwardReport.jsp http://localhost2:xxx/iaProcessForwardReport.jsp
        ProxyPassReverse /iaProcessForwardReport.jsp http://localhost2:xxx//iaProcessForwardReport.jsp

      
Please let us know how to load balance localhost2s....






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux