bea.com | products | dev2dev | support | askBEA
 Download Docs   Site Map   Glossary 
Search

Using WebLogic Server Clusters

 Previous Next Contents View as PDF  

Configuring AlteonTM Hardware with Clusters

This section describes how to configure an Alteon WebSystems Web switch and server load balancing software to operate with a WebLogic Server cluster. It assumes that you have some familiarity with Alteon configuration tasks, such as using the Web OS administration tools and attaching hardware to the Web switch.

Some step-by-step instructions for configuring Alteon products are included. However, if you require detailed setup and administration instructions, refer to your Alteon product documentation. This topic contains the following sections:

 


Requirements

The configuration instructions in this section require that you use the following products:

 


Example Configuration

The steps in this section reference an example WebLogic Server cluster with the following components:

Your actual configuration will likely use different IP addresses, and different ports on the Web switch. If your system includes an iSD-SSL Accelerator, follow the steps in Configuring Alteon with a WebLogic Server Cluster to configure the basic load balancing features, then refer to Configuring Alteon SSL Accelerator with a WebLogic Server Cluster.

 


Configuring Alteon with a WebLogic Server Cluster

The following steps summarize the process of configuring Alteon products with a WebLogic Server cluster:

  1. Install the WebLogic Server cluster and bind server instances to their internal IP addresses (192.168.0.10, 192.168.0.11, 192, 168.0.12). Make sure all IP addresses reside in the same subnet on your internet. A single subnet is required to ensure that all server instances can receive multicast traffic.
  2. Physically connect all components to the Alteon Web switch.
  3. Create a separate Virtual LAN (VLAN) for the Alteon Web switch and the WebLogic Server cluster. Note that the Web switch VLAN is configured by default as VLAN 1. To configure a new VLAN for the cluster:
    >> # /cfg/vlan 2
    >> VLAN 2# add 6
    >> VLAN 2# add 7
    >> VLAN 2# add 8
    >> VLAN 2#ena
  4. Configure and enable an IP interface on the Web switch VLAN and the WebLogic Server VLAN:
    1. To configure the IP interface for the Web switch VLAN:
    2. >> # /cfg/ip/if 1
      >> IP Interface 1# addr 192.168.0.20
      >> IP Interface 1# ena
    3. To configure the IP interface for the WebLogic Server cluster VLAN:
    4. >> # /cfg/ip/if 2
      >> IP Interface 2# addr 172.17.10.100
      >> IP Interface 2# vlan 2
      >> IP Interface 2# ena
  5. Add to the Web switch the real IP addresses of each WebLogic Server in the cluster:
    >> # /cfg/slb/real 1
    >> Real Server 1# rip 192.168.0.10
    >> Real Server 1# ena
    >> Real Server 1# /cfg/slb/real 2
    >> Real Server 2# rip 192.168.0.11
    >> Real Server 2# ena
    >> Real Server 2# /cfg/slb/real 3
    >> Real Server 3# rip 192.168.0.12
    >> Real Server 3# ena
  6. Use Alteon administration software to define an IP address group for the WebLogic Server instances. You will use this group (along with a virtual IP address) to define policies for routing traffic between components of the clustered system:
    >> # /cfg/slb/group 1
    >> Real server group 1# add 1
    >> Real server group 1# add 2
    >> Real server group 1# add 3
  7. Define the hash load balancing metric for the group:
    >> # /cfg/slb/group 1
    >> Real Server group 1# metric hash
  8. Define a virtual IP address for the WebLogic Server cluster:
    >> # /cfg/slb/virt 1
    >> Virtual server 1# vip 172.17.10.100
    >> Virtual server 1# service http
    >> Virtual server 1 http Service# group 1
    >> Virtual server 1 http Service# ..
    >> Virtual server 1# ena
  9. Configure cookie-based persistence, and specify the WebLogic Server identifier.

Note: The following example uses the default values for the WebLogic Server cookie offset, size, and name. These values can be configured in the weblogic.xml file for the deployed application.

>> # /cfg/slb/virt 1/service 80
>> Virtual server 1 http service# pbind
Enter clientip|cookie|sslid persistence mode: cookie
Enter passive|rewrite cookie persistence mode: passive
Enter Cookie Name: JSESSIONID
Enter the starting point of the cookie value: 53
Enter the number of bytes to extract: 10
Look for cookie in URI [e|d]: dis
  1. Configure the Web switch ports to which the cluster and clients are attached:
    >> # /cfg/slb/port 6
    >> Port 6# server ena
    >> # /cfg/slb/port 7
    >> Port 7# server ena
    >> # /cfg/slb/port 8
    >> Port 8# server ena
    >> Port 8# /cfg/slb/port 1
    >> Port 1# client ena
  2. Activate and save the new load balancing settings:
    >> # /cfg/slb
    >> Server Load Balancing# on
    >> Server Load Balancing# apply
    >> Server Load Balancing# save

 


Configuring Alteon SSL Accelerator with a WebLogic Server Cluster

If you use an Alteon SSL accelerator with the WebLogic Server cluster, you will also need to configure a Virtual LAN for the accelerator and create routing policies for directing traffic between the cluster and accelerator. The following steps extend the example system described in Configuring Alteon with a WebLogic Server Cluster to use an Alteon iSD100-SSL accelerator. The accelerator is attached to port 2 of the Alteon web switch.

To use an SSL accelerator with a WebLogic Server cluster:

  1. Install and initialize the iSD100-SSL accelerator using the Alteon product documentation.
  2. Create a Virtual LAN (VLAN) for the Web switch, the SSL accelerator, and for the WebLogic Server cluster. Note that VLAN 1, the virtual LAN for the Web switch, is the default VLAN and does not need to be explicitly created. VLAN 2, the virtual LAN for the cluster, is setup in Configuring Alteon with a WebLogic Server Cluster. To create and enable a VLAN for the Web SSL accelerator:
    >> # /cfg/vlan 2
    >> VLAN 2# add 2
    >> VLAN 2# ena
  3. Disable the Web switch's Spanning Tree Protocol for the ports attached to the SSL accelerator and WebLogic Server cluster:
    >> # /cfg/stp/port 2
    >> STP PORT 2# off
    >> # /cfg/stp/port 6
    >> STP PORT 6# off
    >> # /cfg/stp/port 7
    >> STP PORT 7# off
    >> # /cfg/stp/port 8
    >> STP PORT 8# off
  4. Configure and enable an IP interface for the SSL accelerator VLAN. This example places the SSL accelerator in the same subnet as the WebLogic Server cluster. Note, however, that you may also place the accelerator in its own private subnet:
    >> # /cfg/ip/if 2
    >> IP Interface 2# addr 192.168.0.21
    >> IP Interface 2# vlan 2
    >> IP Interface 2# ena
  5. Configure the cluster real IP addresses, server group, load balancing metric, and cookie-based persistence using the instructions in Configuring Alteon with a WebLogic Server Cluster on page 2 of this Appendix, if you have not already done so.
  6. Configure the TCP port number to use for SSL traffic on the SSL accelerator:
    >> # /cfg/isd/ssl/setport 81
  7. Configure a filter to redirect client HTTPS traffic on TCP port 443 to the SSL accelerator. The following commands use filter 100 as the HTTPS filter. Note that group 256 in the following instructions is reserved for the SSL accelerator, and does not need to be explicitly created:
    >> # /cfg/slb/filt 100
    >> FILTER 100# proto tcp
    >> FILTER 100# dport https
    >> FILTER 100# action redir
    >> FILTER 100# group 256
    >> FILTER 100# rport https
    >> FILTER 100# ena
  8. Configure a default filter to allow other TCP traffic:
    >> # /cfg/slb/filt 101
    >> FILTER 101# sip any
    >> FILTER 101# dip any
    >> FILTER 101# proto any
    >> FILTER 101# action allow
    >> FILTER 101# ena
  9. Add the new filters to client port on the Web switch:
    >> # /cfg/slb/port 1
    >> PORT 1# add 100
    >> PORT 1# add 101
    >> PORT 1# filt ena
  10. Configure a filter to direct TCP traffic from the WebLogic Server cluster back to the SSL accelerator:
    >> # /cfg/slb/filt 102
    >> FILTER 102# proto tcp
    >> FILTER 102# sport 81
    >> FILTER 102# action redir
    >> FILTER 101# group 256
    >> FILTER 101# ena
  11. Add the new filters (including the default filter) to WebLogic Server instance ports on the Web switch:
    >> # /cfg/slb/port 6
    >> PORT 6# add 101
    >> PORT 6# add 102
    >> PORT 6# filt ena
    >> # /cfg/slb/port 7
    >> PORT 7# add 101
    >> PORT 7# add 102
    >> PORT 7# filt ena
    >> # /cfg/slb/port 8
    >> PORT 8# add 101
    >> PORT 8# add 102
    >> PORT 8# filt ena
  12. Activate and save the new settings:
    >> # /cfg/slb
    >> Server Load Balancing# on
    >> Server Load Balancing# apply
    >> Server Load Balancing# save

 

Back to Top Previous Next