7 Installing and Configuring Oracle Traffic Director for an Enterprise Deployment

This chapter describes how to install and configure Oracle Traffic Director for an Exalogic enterprise deployment.

This chapter contains the following sections:

7.1 Overview of Installing and Configuring Oracle Traffic Director for an Enterprise Deployment

Oracle Traffic Director is a software load balancer for load balancing HTTP/S and TCP traffic to servers in the back-end. These back-end servers, which are referred to as origin servers within Oracle Traffic Director, can be application servers, web servers, or LDAP servers.

Installing and configuring Oracle Traffic Director for an enterprise deployment involves performing the steps shown in Table 7-1.

Table 7-1 Overview of Installing and Configuring Oracle Traffic Director for an Enterprise Deployment

Task Description More Information

Review Oracle Traffic Director prerequisites.

For example, be sure that you have set up the required virtual IP addresses, that the user account has root permission on the storage appliance, and that you have already created the initial Oracle WebLogic Server domain for the Oracle Identity Management topology.

"Prerequisites" in the Oracle Traffic Director Installation Guide

Install the Oracle Traffic Director software on WEBHOST1 and WEBHOST2.

You install the software using the directories and mount points you created in Section 4.6, "Configuring Exalogic Storage for Oracle Identity Management."

Section 7.2, "Installing Oracle Traffic Director on WEBHOST1 and WEBHOST2"

Create and start an Oracle Traffic Director Administration Server.

The Oracle Traffic Director administration server hosts the administration console and command-line interface, through which you can create Oracle Traffic Director configurations, deploy them as instances on administration nodes, and manage the instances.

Section 7.3, "Creating and Starting the Traffic Director Administration Server"

Verify the installation.

Be sure that the installation was successful before you continue configuring the environment.

"Verifying the Installation" in the Oracle Traffic Director Installation Guide

Register WEBHOST2 as administration node.

This ensures that Oracle Traffic Director is up and running on both WEBHOST1 and WEBHOST2.

Section 7.4, "Register WEBHOST2 with the Administration Node"

Create a configuration

The configuration should route requests from the Oracle Traffic Director instances to the managed servers in the Oracle WebLogic Server domain you created in Chapter 9, "Creating a Domain for an Enterprise Deployment".

The configuration should also define the required origin-server pools to which requests should be routed.

Section 7.5, "Creating a Configuration"

Start the Oracle Traffic Director instances

Start the instances on WEBHOST1 and WEBHOST2, based on the configuration you created earlier in this procedure.

Section 7.6, "Starting the Oracle Traffic Director Instances"

Define the virtual servers.

Define the virtual servers required for accessing the various management tools and login screens for the topology.

Section 7.7, "Defining the Required Oracle Traffic Director Virtual Servers for an Enterprise Deployment"

Create Routes

Adding routes allows a virtual server to direct requests to different server pools depending on what is contained within the URI.

Section 7.8, "Creating Routes"

Enable SSL Passthrough for sso.mycompany.com

Perform extra configuration steps to ensure that any application redirects occur correctly.

Section 7.9, "Enabling SSL Passthrough for sso.mycompany.com"

Deploy and test the configuration.

Deploy the configuration and test the virtual server URLs to be sure you have configured the Oracle Traffic Director instances successfully.

Section 7.10, "Deploying the Configuration and Testing the Virtual Server Addresses"

Create an active-passive failover group.

Create a failover group to ensure that requests will continue to be served if WEBHOST1 or WEBHOST2 become unavailable.

Section 7.11, "Creating a Failover Group for Virtual Hosts"


7.2 Installing Oracle Traffic Director on WEBHOST1 and WEBHOST2

This section describes how to install Oracle Traffic Director software.

Note:

Be sure that you are not logged in as root user before installing or performing any action on Oracle Traffic Director.

Note:

Be sure to verify you have obtained all required patches. For more info, see Section 2.5.3, "Applying Patches and Workarounds."

To install Oracle Traffic Director:

  1. Extract the contents of the installer zip file to a directory on WEBHOST1.

  2. Change directory to the Disk1 subdirectory in the directory in which you unzipped the installer.

  3. Run the following command:

    ./runInstaller
    
  4. On the Welcome Screen click Next.

  5. On the Software Updates screen, after all the prerequisites have successfully completed, click Next.

  6. On the Specify Installation Location screen, enter the value of the WEB_ORACLE_HOME variable in the Oracle Home Directory field

    The recommended directory location for the WEB_ORACLE_HOME is listed in Table 4-3, "Private Storage Directories".

    If you need help with any of the other options on the installer screens, click Help, or refer to "Installing Oracle Traffic Director in Graphical Mode" in the Oracle Traffic Director Installation Guide.

  7. On the Installation Summary screen, click Install.

  8. When the installation is complete, click Next on the Installation Progress screen.

  9. On the Installation complete screen, click Finish.

  10. Repeat steps 1 through 9 on WEBHOST2.

7.3 Creating and Starting the Traffic Director Administration Server

After you install Oracle Traffic Director on WEBHOST1 and WEBHOST2, you can then create an Oracle Traffic Director administration server.

For more information, see "Managing the Administration Server" in the Oracle Traffic Director Administrator's Guide

To create the Oracle Traffic Director administration server on WEBHOST1 run the tadm command from the WEB_ORACLE_HOME/bin directory, as follows:

  1. On WEBHOST1 enter the following command:

    WEB_ORACLE_HOME/bin/tadm configure-server --port=8989 --user=otd_admin --instance-home=WEB_ORACLE_INSTANCE --host=otdadminvhn
    
    

    Where:

    • WEB_ORACLE_HOME the Oracle Home location you entered in the Oracle Traffic Director installer.

    • WEB_ORACLE_INSTANCE is the recommended value listed in Table 4-3, "Private Storage Directories".

    • otdadminvhn is the virtual hostname to be used for the Oracle Traffic Director administration server and console.

    For example:

    WEB_ORACLE_HOME/web/bin/tadm configure-server 
    --port=8989 --user=otd_admin
    --instance-home=/u02/private/oracle/config/otdAdm 
    --host=otdadminvhn.mycompany.com 
    

    Note:

    If you wish to run Oracle Traffic Director as the root user, which is necessary if OTD is to use ports 1024 or lower. Then add the additional parameter to the line above:

    --server-user=root
    

    Running as root also enables you to start and stop failover groups from within the Oracle Traffic Director administration console.

  2. Enter the administrator password.

    You will later use this password to log in to the Oracle Traffic Director administration console.

    A prompt to re-enter the administrator password is displayed, as follows:

    Please enter admin-user-password again>
    
  3. Confirm the administrator password by entering it again.

    An Administration Server instance of Oracle Traffic Director is created and deployed on the local host in a directory named admin-server within the WEB_ORACLE_INSTANCE directory that you specified in step 1.

  4. Start the Administration Server by running the following command on WEBHOST1:

    WEB_INSTANCE_HOME/admin-server/bin/startserv
    
  5. Login to the Administration Server using the following URL:

    https://OTDADMINVHN:8989
    

    Use the password provided above and verify that you can see the Oracle Traffic Director main page.

7.4 Register WEBHOST2 with the Administration Node

This section assumes you have installed Oracle Traffic Director, started the Administration Server, and verified the installation.

WEBHOST1 and WEBHOST2 have IP over InfiniBand (IPoIB) addresses. For example, 192.168.10.5 and 192.168.10.6.

You can now register WEBHOST2 with the Oracle Traffic Director Administration Server using the tadm command from the WEB_ORACLE_HOME/bin directory, as follows:

  1. On the WEBHOST2, run the configure-server command to register the host with the remote Administration Server as an administration node.

    ./tadm configure-server --user=otdadmin --port=8989 --host=OTDADMINVHN
    --admin-node --node-port=8900 --instance-home=WEB_ORACLE_INSTANCE --node-host=WEBHOST2
    

    Where:

    For example:

    ./tadm configure-server --user=admin --port=8989 --host=OTDADMINVHN
    --admin-node --node-port=8900 --instance-home=/u02/private/oracle/config/instances/otd2 --node-host=WEBHOST2
    

    Note:

    If you wish to run Oracle Traffic Director as the root user, which is necessary if OTD is to use ports 1024 or lower. Then add the additional parameter to the line above:

    --server-user=root
    

    Running as root also enables you to start and stop failover groups from within the Oracle Traffic Director administration console.

    For more information, see "configure-server" in the Oracle Traffic Director Command-Line Reference or use the configure-server --help command to see an explanation of the command line options.

    The following prompt appears after you run configure-server command:

    This command creates an Administration Node and register it with the following remote Administration Server: https://WEBHOST1.mycompany.com
    
    Enter admin-user password>
    
  2. Enter the admin-user password for the Oracle Traffic Director Administration Server.

    The configure-server command attempts to connect to the remote administration server by using the specified administration server host, port, user, and password. The Administration Server on WEBHOST1 must be up and running.

    If this is the first time that the host on which you are creating the administration node is attempting to connect to the administration server, the server certificate of the administration server is displayed.

  3. Enter y to trust the certificate.

    The following message is displayed:

    OTD-70215 The administration node has been configured successfully.The node can be started by executing: 
    WEB_ORACLE_INSTANCE/admin-server/bin/startserv
    

After you start the administration node, you can create instances of Oracle Traffic Director configurations on the administration node. Note that on each administration node, you can create only one instance of a configuration.

7.5 Creating a Configuration

The next step in installing and configuring Oracle Traffic Director for an enterprise deployment is to create a configuration that will route requests to a server pool that consists of the managed servers in your Oracle WebLogic Server domain.

When creating a new configuration, you are required to provide the host and port information for the origin server, which in turn automatically creates (and names) an origin-server pool called origin-server-pool-1. This is the default origin-server pool and this pool can be found when you click the Server Pools option in the administration console. You cannot rename the default origin-server pool.

To create a configuration named IDM by using the administration console:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. In the Common Tasks pane, click New Configuration.

    The New Configuration wizard starts.

    Figure 7-1 New Configuration Wizard

    New Configuration Wizard
    Description of "Figure 7-1 New Configuration Wizard"

  3. In the Step 1 Configuration Information screen, enter the following information:

    • Name: IDM

    • Server User: oracle (or root if you wish the server instances to run as root)

    • Origin Server Type: Make sure HTTP is selected.

    Click Next.

  4. In the Step 2 Listener Information screen, change the port to 7777. Accept the other default values and click Next.

  5. In the Step 3 Server Pool Information screen:

    1. In the Origin Servers: Host: field, enter IDMHOST1, the port 14100, and click Add Server.

    2. Enter IDMHOST2 and port 14100, click Add Server and click Next.

  6. In the Step 4 Deployment Information screen, select the Administration Server and WEBHOST2 and click Next.

    The Review screen appears.

  7. Review the information and click Create Configuration.

    The Results screen appears.

    After the configuration is created, the Results screen of the New Configuration wizard displays a message confirming successful creation of the configuration. If you chose to create instances of the configuration, then a message confirming successful creation of the instances is also displayed.

  8. Click Close on the Results screen.

    In the New Configuration wizard, if you chose not to create an instance of the configuration, the message Undeployed Configuration is displayed, indicating that the configuration that you just created is yet to be deployed.

7.6 Starting the Oracle Traffic Director Instances

To start Oracle Traffic Director instances using the administration console:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button that is situated at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to start the instance.

  4. In the navigation pane, select Instances.

  5. Click the Start/Restart button for the instance that you want to start.

    Note:

    To start or restart all instances of the selected configuration, click Start/Restart Instances in the Common Tasks pane. To stop all instances of the configuration, click Stop Instances.

Starting and Stopping Oracle Traffic Director Administration Instances

In order to access the Oracle Traffic Director Administration Console and the Fusion Middleware Administration Console to be controlled remote OTD instances, start the administration instances.

To start the administration instances:

Run the startserv command located in the following directory:

WEB_ORACLE_INSTANCE/admin-server/bin

To stop the administration services:

Run the stopserv command located in the following directory:

WEB_ORACLE_INSTANCE/admin-server/bin

7.7 Defining the Required Oracle Traffic Director Virtual Servers for an Enterprise Deployment

Create and configure the virtual servers for the Oracle Traffic Director configuration. In this section you create the following Oracle Traffic Director virtual servers for your Oracle Identity and Access Management deployment:

Table 7-2 Defining Virtual Servers

Virtual Server Purpose Creating the Virtual Server

sso.mycompany.com

Acts as the access point for all HTTP traffic that gets directed to the single sign on services.

This virtual server is created through administration console in Step 2.

admin.mycompany.com

Acts as the access point for all internal HTTP traffic that gets directed to the administration services.

This virtual server is created through administration console in Step 2.

idminternal.mycompany.com

Acts as the access point for all Identity Store LDAP traffic.

This virtual server is created through administration console in Step 2.

oudinternal.mycompany.com

Acts as a load balancer, routing requests to SOA servers on IDMHOST1 and IDMHOST2.

This virtual server is created when you configure the TCP Proxy for OUD in Step 3.


To create and configure virtual servers using the administration console complete the following steps:

Step 1   Creating an Origin-Server Pool

A server pool is a group of one or more virtualization hosts with the same processor architecture that have access to the same virtual and physical networks, and storage resources. Server pools provide load balancing, high availability capabilities, and sharing of some resources for all members of the pool.

In this section, create the Oracle Traffic Director origin-server pools listed in Table 7-3.

Table 7-3 Origin-Server Pools and Origin Servers

Origin-Server Pool Origin Server Type Origin Servers Port

admin-pool

HTTP

ADMINVHN.mycompany.com

7001

oud-pool

TCP

IDMHOST1.mycompany.com, IDMHOST2.mycompany.com

1389

oim-pool

HTTP

OIMHOST1VHN.mycompany.com, OIMHOST2VHN.mycompany.com

14000

oam-pool

HTTP

IDMHOST1.mycompany.com, IDMHOST2.mycompany.com

14100

soa-pool

HTTP

SOAHOST1VHN.mycompany.com, SOAHOST2VHN.mycompany.com

8001


To create an origin-server pool:

  1. Log in to the Administration Console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button that is situated at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to create a server pool.

  4. In the Common Tasks pane, click New Server Pool.

    The New Origin-Server Pool wizard starts.

    Figure 7-2 New Origin-Server Pool Wizard

    New Origin-Server Pool Wizard
    Description of "Figure 7-2 New Origin-Server Pool Wizard"

  5. Enter the following information in the Server Pool Information screen:

    • Name: Name of the server pool. For example, oam-pool

    • Origin Server Type: The type of requests the pool handles. For example, HTTP.

    Click Next.

  6. Enter the following information in the Origin Server Information screen:

    • Origin Server Host: IDMHOST1.mycompany.com

    • Port: 14100

    Click Add Server.

  7. Enter the information for any other servers. For example:

    • Origin Server Host: IDMHOST2.mycompany.com

    • Port: 14100

    Click Next.

    Review the information on the Review screen. If the information is correct, click Create Server Pool.

  8. Repeat steps 4-6 to create each of the server pools listed in table Table 7-3.

  9. Click Close on the Results screen.

    • The details of the origin-server pool that you just created are displayed on the Origin-Server Pools page.

    • In addition, the Deployment Pending message is displayed at the top of the main pane. You can either deploy the updated configuration immediately by clicking Deploy Changes, or you can do so later after making further changes as described in Section 7.10, "Deploying the Configuration and Testing the Virtual Server Addresses."

Step 2   Creating Virtual Servers

Create virtual servers using the information in Table 7-4.

Table 7-4 Virtual Server Information

Name Host Pool

sso.mycompany.com

sso.mycompany.com

oam-pool

admin.mycompany.com

admin.mycompany.com

admin-pool

idminternal.mycompany.com

idminternal.mycompany.com

oim-pool


To create a virtual server using the administration console:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button that is situated at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to create a virtual server.

  4. In the Common Tasks pane, click New Virtual Server.

    The New Virtual Server wizard starts.

    Figure 7-3 New Virtual Server Wizard

    New Virtual Server Wizard
    Description of "Figure 7-3 New Virtual Server Wizard"

  5. On the Virtual Server Information Page enter the following information:

    • Name: The name describing the virtual server. For example, sso.mycompany.com

    • Host: The name in the DNS/Hosts which is used to access this virtual server. For example, sso.mycompany.com

    Click Next.

  6. Select HTTP Listener Information, select listener 7777, and click Next.

  7. On the server Pool Information Screen, enter the following information:

    Click Next.

  8. Review the supplied information in the Review screen and click Create Virtual Server.

  9. Repeat steps 4-6 for each virtual server in Table 7-4.

Step 3   Creating a TCP Proxy and Listener for oudinternal.mycompany.com

Create a TCP Proxy using the administration console.

To create a TCP Proxy:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button that is situated at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to create a TCP Proxy.

  4. In the Common Tasks pane, click New TCP Proxy.

    The New TCP Proxy wizard starts.

    Figure 7-4 New TCP Proxy Wizard

    New TCP Proxy Wizard
    Description of "Figure 7-4 New TCP Proxy Wizard"

  5. In the Step 1: TCP Proxy Information screen, enter the following information and click Next:

    • Name: oudinternal.mycompany.com

    • Listener Name: listener-oud

    • Port: 1489

    • In the IP Address field, enter *.

  6. In the Step 2: Server Pool Information screen, click Select a pool of origin servers.

  7. In the drop-down list, select oud-pool and click Next.

    The Review screen appears.

  8. Review the details and click Create TCP Proxy.

  9. Click Close on the Results screen.

7.8 Creating Routes

Routes are similar to an Oracle HTTP location directives. Any requests received for a specific URI inside a virtual server are directed to the appropriate server pool. Adding routes allows a virtual server to direct requests to different server pools depending on what is contained within the URI.

Create the routes listed in Table 7-5using the administration console:

Table 7-5 Routes and Conditions

Virtual Host Route Origin-Server Pool Conditions Cookie Name

admin.mycompany.com

default

admin-pool

N/A

 
 

oim-admin-route

oim-pool

$uri =~ '/oim' or $uri =~ '/identity'

$uri =~ '/sysadmin' or

$uri =~ '/xlWebApp' or

$uri =~ '/Nexaweb'

oimjsessionid

sso.mycompany.com

default

oim-sso-route

oam-pool

oim-pool

N/A

$uri =~ '/identity' or

$uri =~ '/xlWebApp' or

$uri =~ '/HTTPClnt' or

$uri =~ '/reqsvc'

OAM_JSESSIONID

oimjsessionid

idminternal.mycompany.com

default

soa-idminternal-route

oim-pool

soa-pool

N/A

$uri =~ '/soa-infra' or

$uri =~ '/sodcheck' or

$uri =~ '/integration' or

$uri =~ '/ucs'

oimjsessionid

oimjsessionid


To create virtual server routes:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button that is situated at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to configure routes.

  4. In the navigation pane, expand Virtual Servers, expand the sso.mycompany.com virtual server, and select Routes.

    The Routes page is displayed. It lists the routes that are currently defined for the virtual server.

    Creating a Route

    1. Click New Route.

      The New Route dialog box is displayed.

      Figure 7-5 New Route Dialog Box

      New route Dialog Box
      Description of "Figure 7-5 New Route Dialog Box"

    2. In the Step 1: Route Properties screen, in the Name field, enter oim-sso-route

    3. In the Origin Server Pool drop-down select oim-pool, and click Next.

    4. In the Step 2: Condition Information screen, select the $uri variable from the Variable/Function drop-down list. Select the Operator ('= ~ ' in your example). And enter the value in the Value field.

      Note:

      Joiner, such as and or or, cannot be used for the first expression in the sequence.

      Figure 7-6 New Route Condition Expressions

      New Route Conditoin Expressions
      Description of "Figure 7-6 New Route Condition Expressions"

    5. Click OK and click the Plus button to add the next expression.

      Figure 7-7 New Route Condition Information

      New Route Condition Informatoin
      Description of "Figure 7-7 New Route Condition Information"

    6. Select the Variable/Function, Operator, and Value and click OK.

      Figure 7-8 New Route Condition Information

      New Route Condition Informatoin
      Description of "Figure 7-8 New Route Condition Information"

      Note the joiner 'or' can now be selected.

    7. Perform steps d to g until you have added all the required values

      You can also click the Edit Manually button to edit the expressions in a text field. Note that going into the manual mode, it is not possible to go back to the default edit mode. You must continue in the manual edit mode and save the condition.

  5. Click Next, and then Create Route.

    The route that you just created is displayed on the Routes page.

    In addition, the Deployment Pending message is displayed at the top of the main pane. You can either deploy the updated configuration immediately by clicking Deploy Changes, or you can do so later after making further changes as described in Section 7.10, "Deploying the Configuration and Testing the Virtual Server Addresses."

  6. Update the cookie name of the newly created route and the default route:

    1. Click on the newly created route.

    2. Expand the Advanced Settings

    3. Set Sticky Cookie to the cookie name from table Table 7-5.

    4. Set the Sticky URI Parameter to the cookie name from Table 7-5.

    Click Save.

7.9 Enabling SSL Passthrough for sso.mycompany.com

In the enterprise deployment, Topology SSL is terminated at the hardware load balancer and passed through to Oracle Traffic Director using the HTTP protocol.

Oracle Traffic Director requires extra configuration steps to ensure that any application redirects occur correctly.

To ensure application redirects occur correctly:

  1. Log in to the Administration Console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to configure routes.

  4. In the Navigation Pane, expand Virtual Servers and select a virtual server, for example, sso.mycompany.com.

  5. Click Routes.

    The defined routes appear.

  6. Click a route, for example, default-route.

    The Route Properties screen appears.

  7. Expand Advanced Settings.

  8. In the Route Properties section, remove the default value of Rewrite Headers (location,content-location) .

  9. In the Parameters Forwarded to Origin Servers section, deselect the following:

    • SSL

    • Cipher

    • Key Size

    • Secret Key Size

    • SSL/TLS Session ID

    • Certificate

    • User DN

    • Issuer DN

    Click Save.

  10. Repeat for each route associated with the virtual server sso.mycompany.com.

7.10 Deploying the Configuration and Testing the Virtual Server Addresses

Deploy the configuration to create an instance of it on an administration node. When you deploy a configuration, the running instances are reconfigured to reflect the configuration changes.

Note:

The topology documented in this guide requires the following virtual IP addresses:

  • oudinternal.mycompany.com

  • idminternal.mycompany.com

  • admin.mycompany.com

You can add oudinternal.mycompany.com and idminternal.mycompany.com host entries to resolve them with and internal IP address.

You can register admin.mycompany.com on the DNS.

Deploying a Configuration Using the Administration Console

To deploy a configuration by using the administration console, do the following:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the IDM configuration.

  4. Click Deploy.

    A message is displayed confirming that the updated configuration was successfully deployed.

  5. Click Close.

7.11 Creating a Failover Group for Virtual Hosts

When a request is sent to one of the virtual hosts oudinternal.mycompany.com and idminternal.mycompany.com it is directed to the IP address associated with the virtual host name. This IP address is enabled on one of the OTD instances. Move the IP address to an OTD instance that is still available.

Each OTD instance maintains a heart beat with each other OTD instance. If that heartbeat fails then OTD moves active IP addresses on the downed instance to one of the named failover instances. You do this by creating an active-passive failover group for the IP address. This failover group lists a primary and a number of secondary instances.

The enterprise deployment on Exalogic uses the following four failover groups:

  • A failover group for distributing internal LDAP requests among the OUD servers.

  • A failover group for internal inter-app requests.

  • Two failover groups to allow the external load balancer requests among Oracle Traffic Director servers. This failover group is optional, as the load balancer could point to the OTD instances directly. The benefit of using an Oracle Traffic Director failover group is that failures are detected and resolved faster using the failover group resulting in a reduced recovery time from failed servers.

The steps below show you how to create failover groups with the information in Table 7-6.

Table 7-6 Failover Group Details

Virtual IP Address Router ID Network Prefix Primary Node Primary Network Interface Secondary Node Secondary Network Interface

oudinternal.mycomapny.com

50

19

Admin Node

bond0

WEBHOST2

bond0

idminternal.mycompany.com

51

19

WEBHOST2

bond0

Admin Node

bond0

webhost1-vhn1.mycompany.com

52

19

Admin Node

bond1

WEBHOST2

bond1

webhost2-vhn1.mycompany.com

53

19

WEBHOST2

bond1

Admin Node

bond1


Note:

The failover groups for the external virtual IP addresses are optional since the load balancer fails over requests between the two Oracle Traffic Director instances. However, they will provide faster failure detection and failover than the typical load balancer monitors.

Note:

The router ID is a unique number you assign to the routing. The number must be between 1 and 244.

The Network Prefix is the subnet mask in the CIDR format.

The primary node is the node where the Failover group is initially active.

The Primary Network Interface is the interface on the host where the failover group is bound.

The Secondary Node is the Node on which the failover group can be started if the Primary node is unavailable.

The Secondary Network interface is the Network Interface used on the Secondary node.

To create a failover group by using the administration console, do the following:

  1. Log in to the administration console using the following URL:

    https://OTDADMINVHN:8989
    
  2. Click the Configurations button at the upper left corner of the page.

    A list of the available configurations appears.

  3. Select the configuration for which you want to create a failover group.

  4. In the navigation pane, click Failover Groups.

    The Failover Groups page is displayed.

  5. Click New Failover Group.

    The New Failover Group wizard is displayed.

    Figure 7-9 New Failover Group Wizard

    New Failover Group Wizard
    Description of "Figure 7-9 New Failover Group Wizard"

  6. In the Virtual IP (VIP) field, enter the virtual IP address associated with oudinternal.mycompany.com (192.168.50.2) and click Next.

    To create the failover group for the idminternal.mycompany.com use the the VIP associated with the idminternal.mycompany.com (192.168.50.1).

  7. In the Step 2: Failover Nodes Information screen, select the Primary and Backup nodes, (WEBHOST1, WEBHOST2), and click Next.

    The details of the failover group that you just created are displayed on the Failover Groups page.

  8. Click Close on the Results screen.

    The details of the failover group that you just created are displayed on the Failover Groups page.

Note:

A message may be displayed indicating that the failover group could not be started in the involved nodes due to insufficient privileges. To resolve this, log in to each node as root and run the following command:

WEB_ORACLE_HOME/bin/tadm start-failover --instance-home=WEB_INSTANCE_HOME/ --config=IDM

7.12 Backing Up the Oracle Traffic Director Configuration

Back up the Oracle Traffic director configuration. For more information, see Section Section 16.6, "Backing Up the Oracle IDM Enterprise Deployment."