Create a high availability 12C weblogic clustering environment with Traffic Director 11gR1 by Eugene Simos
By hamsun on May 07, 2013
Traffic director is one of the latest load balancer software, released by
In fact its a fast, reliable, scalable and very easy manageable solution, for HTTP, HTTPS, TCP traffic for backend application and HTTP servers.
I have used the latest version of both traffic director, and weblogic 12c, to setup a simple clustering replication session scenario, on my Linux 64bits VBox sandbox.
For this scenario, the Traffic Director, is configured as a front end to a backend weblogic 12C cluster.
A specific feature "dynamic discovery", will let Traffic Director, discover on "the fly" new clustered Weblogic Nodes, associated with its initial configuration, and I will be able to "join" to my initial " 3 nodes wls cluster an another wls instance (doted line), with full HTTP replication capabilities.
In order to test the session replication I used one sample application, delivered as such, with the wls 12 installation (I will detail the utilization of this application in a later post :) ), which I called Session, and I will test the failover features of wls 12, with the Traffic Director, with this Session application deployed on my cluster!
The binary distribution, of the Traffic Director can be download from here:
Once that the distribution is download to my linux box, i started the normal FMW installation workflow:
Passing the normal test on the Linux system components, and choose an empty Oracle Traffic director Home for the software installation :
I saved the response file (I might use next time the silent installer !)
Then after saving the installation
details, I start to configure my Traffic Director instances as following :
1) Create one admin instance (I used just the default settings) and an "default user" admin/welcome1
2) Start the instance from the installation directory:
3 ) I used the Traffic Director admin interface : https://localhost:8989, and with my credentials ( from section 1 admin/welcome1) I got the first admin panel
Once that I m logged into the Traffic Director, I m getting a initial "welcome" screen, and I have to create my own configurations according to my wls 12 cluster:
My Weblogic 12c cluster, was configured initially with 3 nodes, and i will add later one more managed instance. I have to create a specific Traffic Director configuration to route the traffic to my backend servers.
Through the Traffic Director configuration wizard, i will create a node on
my local linux ( port 8080) , which will push the HTTP requests to my wls 12c
The Traffic Director node will use the specific feature of dynamic discovery in order to be able to push the HTTP request to other wls 12c clustered instances that will join the cluster later:
Then I started my 3 wls 12c clustered instances, on which I deployed my test Session replication application, and i started to test the Session replication scenario thought the Traffic Director node:
As you can see, my session
has been created to the M1 node of my cluster.
I have created some data with this session, then I stopped the M1 node ( node failure simulation) and re submitted the request to the wls 12 cluster.
As you can see the session failover feature of the wls 12c worked perfectly, and now my session is on the M2 wls clustered node with the same date as on the previous failed M1 node !
For the dynamic discovery,
I created one more managed server in the cluster (M4), then stopped the M2
server, and retried the Session application URL through the Traffic director
As you can see the Traffic Director routed the request to the new clustered server, with all the session replication data.
In a next post , we will deploy the Session application in a weblogic cluster, and we will use it as a test application, for the session replication features of weblogic.
About the Author:
Eugene Simos is based in France and joined Oracle through the BEA-Weblogic Acquisition, where he worked for the Professional Service, Support, end Education for major accounts across the EMEA Region. He worked in the banking sector, ATT, Telco companies giving him extensive experience on production environments. Eugene currently specializes in Oracle Fusion Middleware teaching an array of courses on Weblogic/Webcenter, Content,BPM /SOA/Identity-Security/GoldenGate/Virtualisation/Unified Comm Suite) throughout the EMEA region.