2 Replies Latest reply: Jan 14, 2013 3:32 AM by Srinath Menon-Oracle RSS

    Multiple Managed servers front-ended by 1 OHS instance

    Srinath Menon-Oracle
      Hi ,

      I have 2 different domains having 1 Managed server in each of them , MS1 and MS2 and they are not clustered . Both have the same webcontext app /cs .

      Is it possible that both these managed servers can be front-ended by a single OHS instance ?

      Please let me know if that is possible and how to achieve the same .

      What I have tried is putting the following set of entries in mod_wl_ohs.conf file :

      <IfModule weblogic_module>

      <Location /cs>
      SetHandler weblogic-handler
      PathTrim /cs
      DynamicServerList Off
      WebLogicCluster host1:port1,host1:port2
      </Location>

      <Location /adfAuthentication>
      SetHandler weblogic-handler
      PathTrim /adfAuthentication
      DynamicServerList Off
      WebLogicCluster host1:port1,host1:port2
      </Location>

      </IfModule>


      Restarted OHS server and then launching http://ohs-host:port/cs shows the login page and after entering the credentials when submit button is clicked , it goes back to the OHS Home page .

      Not sure what other configuration has to be done to achieve this .

      Please share your inputs .

      Thanks,
      Srinath
        • 1. Re: Multiple Managed servers front-ended by 1 OHS instance
          702994
          Hi,

          As you said this nodes are not clustered ..
          Please use mod_proxy configuration in OHS as below .

          ProxyPass / http://host1:port1/cs
          ProxyPassReverse / http://host1:port1/cs

          ProxyPass / http://host2:port2/cs
          ProxyPassReverse / http://host2:port2/cs

          You can achieve load balancing also using mod_proxy_balancer , below is the link fore more information .

          http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

          Thanks,
          Kartheek Reddy
          Senior Middleware Administrator
          • 2. Re: Multiple Managed servers front-ended by 1 OHS instance
            Srinath Menon-Oracle
            Hi Kartheek ,

            mod_proxy_balancer.so is not OOTB available with OHS 11g ,and when using the mod_proxy module all the requests end up going to the first server listed in the module block. Here is httpd.conf :

            <IfModule mod_proxy.c>
            ProxyPass /cs http://hostname1:port1/cs
            ProxyPassReverse /cs http://hostname1:port1/cs
            ProxyPass /adfAuthentication http://hostname1:port1/adfAuthentication
            ProxyPassReverse /adfAuthentication http://hostname1:port1/adfAuthentication



            ProxyPass /cs http://hostname1:port2/cs
            ProxyPassReverse /cs http://hostname1:port2/cs
            ProxyPass /adfAuthentication http://hostname1:port2/adfAuthentication
            ProxyPassReverse /adfAuthentication http://hostname1:port2/adfAuthentication

            </IfModule>

            Is there anything that I have missed out or has to be done to get the servers Load balanced ?

            Thanks,
            Srinath