Enable static routing for a cluster


 

+

Search Tips   |   Advanced Search

 

Overview

If the high availability infrastructure is disabled and we require IIOP routing capabilities, we can create a static routing table for the members of a cluster to use to handle enterprise bean requests. Because the information contained in this static routing table does not account for server runtime state, delete this table and return to using the dynamic routing table as soon as the high availability infrastructure is enabled.

Before you create a static route table, ensure that:

 

Create a static route table

  1. Use wsadmin to run...

    ### Jacl...

    ### Identify the MBean for the cluster for which
    ### we are creating the route table.

    cluster = AdminControl.completeObjectName('cell=cname,type=Cluster,name=clname,*')

    print cluster

    ### Export the route table.
    $AdminControl invoke $cluster exportRouteTable

    ### After the table is created, the name of the route table file is displayed
    ###
    ###     /IBM/WAS7/profiles/Dmgr01/config/cells/mycell/clusters/cluster1/cluster1.wsrttbl
    ###

    ### Synchronize the configuration changes across nodes.

    set Sync1 [$AdminControl completeObjectName type=NodeSync,node=myNodeName,*]

    ### Clear the configuration repository Epoch.

    set configRepository [$AdminControl completeObjectName node=node_name,type=ConfigRepository,*]
    $AdminControl invoke $configRepository refreshRepositoryEpoch

    Jython...

    set cluster [$AdminControl completeObjectName cell=cname,type=Cluster,name=clname,*]
    puts $cluster

    AdminControl.invoke(cluster, 'exportRouteTable')

    Sync1 = AdminControl.completeObjectName('type=NodeSync,node=myNodeName,*')
    configRepository = AdminControl.completeObjectName('node=node_name, type=ConfigRepository,*')
    AdminControl.invoke(configRepository, 'refreshRepositoryEpoch')

  2. Repeat this process for each node to synchronize.
  3. Stop the cluster.

  4. Exit wsadmin.

  5. Run startServer with debug to manually start each member of the cluster.

    -Dcom.ibm.websphere.management.registerServerIORWithLSD=false

    For example

    cd $PROFILE_HOME
    startServer.sh server1 -Dcom.ibm.websphere.management.registerServerIORWithLSD=false

 

Related tasks

Disable static routing for a cluster
Save configuration changes with wsadmin
Synchronize nodes with wsadmin
Start the wsadmin scripting client
Stop clusters
Stop clusters using scripting
Create clusters

 

Related

Java virtual machine custom properties

 

Related information

Starting clusters
Starting clusters using scripting