Forum Moderators: phranque

Message Too Old, No Replies

Apache Http Server as load balancer for opensso

         

swastb

11:49 am on Oct 26, 2010 (gmt 0)

10+ Year Member



Hi all,

we are trying to use Apache Http Server 2.2 as load balancer for Opensso which is deployed on weblogic. Presently Opensso is deployed in two difference machines say server1.com on port 8888 and server2.com on port 8899. We want to use apache http server as load balancer for it.We have done the following.

1. Installed mod_wl_22.so from weblogic.
2. Add the following in httpd.conf

<IfModule mod_weblogic.c>
WebLogicCluster server1.com:8989,server2.com:8989
</IfModule>

<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>

With this the first of opensso is coming fine,but the other pages are not coming up. I got the following link for opensso with apache.
[wikis.forgerock.org...]
I followed the same but no luck.Please suggest me some solution.Thanks.

sublime1

3:08 pm on Nov 2, 2010 (gmt 0)

10+ Year Member



Why not use a load balancer rather than Apache? mod_proxy has some rudimentary load balancing abilities, but if that's all you're using Apache for, it's kind of overkill.

I used HAProxy on one of the sites I used to manage and it was simple, lightweight and elegant. And free.

swastb

12:25 pm on Nov 3, 2010 (gmt 0)

10+ Year Member



Thank you so much for your reply. I have installed HAProxy as you have suggested. Now I am able to get the front page correctly for one server say server1.But incase if i make server1 down, its not able to call server2 correctly.
For me the HAProxy is running on test123.opensso.com on port 80.@ Weblogic server running on test154.opensso.com on port 8888 and test123.opensso.com on 8899.Problem is coming when I make test123.opensso.com weblogic server down.The request not getting forwarded to test154.opensso.com
Here is my haproxy.conf file content

global
maxconn 4096
pidfile /var/run/haproxy.pid
daemon

defaults
mode http
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000

listen GALAXY test123.opensso.com:80
mode http
cookie GALAXY insert
balance roundrobin
option httpclose
option forwardfor
stats enable
stats auth myuser:mypass
server EARTH test154.opensso.com:8888 cookie GALAXY_SERVER_01 check
server MOON test123.opensso.com:8899 cookie GALAXY_SERVER_02 check

I am getting error as page not found when test123.opensso.com is down.Please help me.