Tuesday, November 9, 2010

Oracle UCM 11g clustered (continued)

I forgot to mention two things about clustering in my previous post.

- After creating a domain on the first physical machine, and you want to transfer the configuration to the other physical machine, do the following:

On the first machine

$ cd /u01/oracle/middleware/user_projects/domains/
$ ../../wlserver_10.3/common/bin/pack.sh -managed=true -domain=my_domain -template=my_domain.jar template_name="my_domain"
$ scp my_domain.jar oracle@node2.mydomain.com:/u01/oracle/middleware/user_projects/domains

on the second machine

$ cd /u01/oracle/middleware/user_projects/domains/
$ ../../wlserver_10.3/common/bin/unpack.sh -domain=my_domain -template=my_domain.jar

Note, when configuring weblogic machine on linux,  it is better to use Unix Machine (you can accept the defualts)

- Now you have UCM clustered on two machines, so what about load balancing? you have several options like using another weblogic instance to do load balancing, but in my case I used apache HTTP server for doing that (this was because I wanted to minimize licenses required)

To do load balancing
- Download weblogic plugin for Apache from http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
- Ensure that Apache is up and working on the server
- Extract the plugin in a directory on  your server
- add the following to httpd.conf (I assume here we are installing on linux)


#Weblogic Proxy Plugin
LoadModule weblogic_module /root/wlsplugin/lib/mod_wl.so

#Weblogic Proxy Plugin

SetHandler weblogic-handler
WebLogicCluster node1.mydomain.com:16200,node2.mydomain.com:16200


I hope you will have a good picture about how to accomplish that

2 comments:

srinath said...

Hi Hisham ,

I read your blogs regularly to get new ideas on UCM .
Just wanted to clarify on the last part of this article where in setting apache as load balancer.

this line :

Chara.mew.gov.kw:7003,Chort.mew.gov.kw:7003

should have been:

Chara.mew.gov.kw:16200,Chort.mew.gov.kw:16250

Isn't it ? Since in a load balancer we are redirecting UCM to come via Apache port so for the UCM traffic to be diverted it's web port is to be used .

Am I missing something ?

Unknown said...

Hi Srinath,

I wrote it by mistake and I change it in the Original post, it is supposed to be (for UCM cluster)
node1.mydomain.com:16200,node2.mydomain.com:16200
and if you need inbound refinery to be load balanced you need to have another apache instance configured to do that.

Currently I don't know of we can configure the same apache instacne to load balance ucm and ibr in the same time.

Thanks for correction.