This is a continuation of Oracle Fusion learnings, out the list OTD, In the previous post we had Oracle Traffic Director installation was discussed. In front end technologies of Oracle come with a great set of the stack after Oracle Fusion Middleware 12c, one of them is Oracle Traffic Director. Here in this post would like to discuss how we can automate the process of OTD domain creation. Oracle came up with this tool when the market is occupied with CISCO and BIGIP load balancer, which are expensive and when you take the whole stack then you will be get benefited in license cost.
OTD main functionality is to load balancing the HTTP requests can be handled with different balancing strategies such as :
There must be at least two similar sites which can be routed with OHS or any proxy webservers. Each proxy or WebGate pointing to a WebLogic based domain it could be SOA domain as well. Example ohs1 pointing to SOA_prod_domain, ohs2 is going to refer SOA_DR_domain.
First, we will need to install the Oracle Traffic Director using the below link
Oracle Traffic Director installation in command mode
Once the installation is complete
You might also be interested to view OHS related posts:
OTD main functionality is to load balancing the HTTP requests can be handled with different balancing strategies such as :
- Active- Active
- Active-Passive
Prerequisites for OTD Domain
There must be at least two similar sites which can be routed with OHS or any proxy webservers. Each proxy or WebGate pointing to a WebLogic based domain it could be SOA domain as well. Example ohs1 pointing to SOA_prod_domain, ohs2 is going to refer SOA_DR_domain.
First, we will need to install the Oracle Traffic Director using the below link
Oracle Traffic Director installation in command mode
Once the installation is complete
Configuring Standalone OTD domain
The configuration of OTD Domain is very simple it is almost a single line command in WLST. To do this follow these steps:- Launch the WLST command shell
$ORACLE_HOME/oracle_common/common/bin/wlst.sh
It will launch WLST shell for you which is capable of running OTD related MBeans available in it. - Run the following command to create the Oracle Traffic Director instance.
- First create the properties variable which is required to configure OTD Domain, For more convenient way you can create a file and you can modify it for Test, Pre-Production, Production environments.
props = {'domain-home': '/home/oracle/wls_domains/domains/otd_domain', 'origin-server': '192.xxx.xxx.xxx:xxx,192.xxx.xxx.xxx:xxx ','listener-port': '20009', 'instance': 'OTD1', 'server-name': '192.xxx.xxx.xxx'} otd_createStandaloneInstance(props)
Oracle Traffic Director Domain configuration using WLST |
How to start the OTD Instance?
- Run the command to start the Oracle Traffic Director standalone instance:
-
cd /home/oracle/wls_domains/domains/otd_domain/config/fmwconfig/components/OTD/instances/OTD1/bin ./startserv