Running the addNodeToDCCluster script

After you have configured Decision Center on a WebSphere® Application Server cluster, you can run the script that adds a node to the cluster.

Before you begin

Before you start the script to add a cluster node, make sure that the node is already federated, and set the ODM_HOME environment variable. The script that you run in step 2 uses that variable.
To federate a new node into the cell of the deployment manager, perform the following steps from the new (likely remote) node:
  1. Create a managed node, by running the following command from the <WAS_InstallDir>\bin directory:
    manageprofiles -create -templatePath ..\profileTemplates\managed -profileName <my new node profile name>
  2. Add the node to the deployment manager cell, by running the following command from the <WAS_InstallDir>\profiles\my new node profile name\bin directory:
    addNode.bat <dmgr hostname> <dmgr Soap port> -username <dmgr admin user> -password <dmgr admin password>
The remote node must have only WebSphere Application Server Network Deployment installed. For more information, see the IBM® WebSphere Application Server Network Deployment documentation.

About this task

After you have set up your cluster through the configuration script, you can configure a default node and add it to the cluster.

Procedure

  1. Verify that the configureDCCluster.properties file contains the correct cluster name and database values.

    You can find this file in the profiles/Dmgr01/bin/rules/ directory, where Dmgr01 is the name of the deployment manager profile. The configuration properties must contain values for the following keys:

    wodm.dcrules.clusterName
    The value must be the name of an existing cluster. The default name is DecisionCenterCluster
    wodm.dcrules.rulesMgrServerName
    The name of the server that hosts the Rule Execution Server console. For example: RulesMgrSrv.
    wodm.virtualhost.name
    The target virtual host where the applications will be installed. The default is default_host.
    wodm.dcrules.db.type
    The database type: DB2®, Oracle, or MSSQL. The default is DB2.
    wodm.dcrules.db.jdbcDriverPath
    The path to the JDBC drivers. Separate the driver names with a colon (;). For example: C:/drivers/db2jcc.jar;C:/drivers/db2jcc_license_cu.jar;
    wodm.dcrules.db.name
    The name of the database. For example: MyDB
    wodm.dcrules.db.hostname
    The name of the host where the database is hosted: For example: MyDB_server
    wodm.dcrules.db.port
    The port number to establish the connection to the database
    wodm.dcrules.db.user
    The user name to connect to the database. For example: db_user1
    wodm.dcrules.db.password
    The password for the user to connect to the database. For example: db_user1_pwd
  2. Navigate to the profiles/Dmgr01/bin directory and start the addNodeToDCCluster script with the required parameters.

    The script interpreter calls bash. If bash is not available on your system, an error is thrown with the message Bad interpreter.

    The command line syntax is: addNodeToDCCluster[.bat|.sh|.ksh] -ParameterName1 parameterValue1 -ParameterName2 parameterValue2 ... .

    • On Windows:
      <WAS_InstallDir>\profiles\Dmgr01\bin\addNodeToDCCluster.bat
       -dmgrAdminUsername websphere -dmgrAdminPassword websphere
       -clusterPropertiesFile <WAS_InstallDir>\profiles\Dmgr01\bin\rules\configureDCCluster.properties
       -targetNodeName DecisionCenterNode01 -dmgrPort 8879 -targetNodeServerName serverA
    • On UNIX:
      <WAS_InstallDir>/profiles/Dmgr01/bin/addNodeToDCCluster.sh
       -dmgrAdminUsername websphere -dmgrAdminPassword websphere
       -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDCCluster.properties
       -targetNodeName DecisionCenterNode01 -dmgrPort 8879 -targetNodeServerName serverA
    • On HP-UX:
      <WAS_InstallDir>/profiles/Dmgr01/bin/addNodeToDCCluster.ksh
       -dmgrAdminUsername websphere -dmgrAdminPassword websphere
       -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDCCluster.properties
       -targetNodeName DecisionCenterNode01 -dmgrPort 8879 -targetNodeServerName serverA
    Table 1. Cluster configuration parameters
    Parameter name Required Description
    -dmgrAdminUsername Mandatory The WebSphere Application Server administrator’s user identifier that you defined when you installed Decision Center
    -dmgrAdminPassword Mandatory The WebSphere Application Server administrator’s password that you defined when you installed Decision Center.
    -clusterPropertiesFile Mandatory The full path to the properties file.
    -targetNodeName Optional By default, the name of the target installation node is set to RulesNode01.
    -dmgrPort Optional The SOAP TCP port of the deployment manager. By default, 8879.
    -targetNodeServerName Optional The name of the server on the target installation node. Specify the name of a server that is already in the cluster. There is no way to add an existing server to a cluster that is already setup.

Results

The script configures an existing WebSphere Application Server node, which is already federated into the deployment manager of the cell, with the Decision Center artifacts. The script adds a new member to the cluster that is specified in the configureDCCluster.properties file that you pass as a parameter.

When the script completes, the cluster is up and running with the new node added.
Note: The Decision Center EAR file is very large. Therefore, one or more steps in the addNodeToDCCluster script might fail due to hardware limitations or other environment constraints. If so, address the issue before rerunning the script.