Running the addNodeToDSCluster script

After you have configured Rule Execution Server as 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 configureDSCluster.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.dsrules.clusterName
    The value must be the name of an existing cluster. The default name is DecisionServerCluster.
    wodm.dsrules.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.dsrules.db.type
    The database type: DB2®, Oracle, or MSQL. The default is DB2.
    wodm.dsrules.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.dsrules.db.name
    The name of the database. For example: MyDB.
    wodm.dsrules.db.hostname
    The name of the host where the database is hosted: For example: MyDB_server.
    wodm.dsrules.db.port
    The port number to establish the connection to the database.
    wodm.dsrules.db.user
    The user name to connect to the database. For example: db_user1.
    wodm.dsrules.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 addNodeToDSCluster script with the required parameters.

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

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

    • On Windows:
      <WAS_InstallDir>\profiles\Dmgr01\bin\addNodeToDSCluster.bat -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>\profiles\Dmgr01\bin\rules\configureDSCluster.properties -targetNodeName DecisionServerNode01
      -dmgrPort 8879 -targetNodeServerName serverA
    • On UNIX:
      <WAS_InstallDir>/profiles/Dmgr01/bin/addNodeToDSCluster.sh -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDSCluster.properties -targetNodeName DecisionServerNode01
      -dmgrPort 8879 -targetNodeServerName serverA
    • On HP-UX:
      <WAS_InstallDir>/profiles/Dmgr01/bin/addNodeToDSCluster.ksh -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDSCluster.properties -targetNodeName DecisionServerNode01
      -dmgrPort 8879 -targetNodeServerName serverA
    Table 1. Cluster configuration parameters
    Parameter name Required Description
    -dmgrAdminUsername Mandatory The WebSphere Application Server administrator’s user identifier
    -dmgrAdminPassword Mandatory The WebSphere Application Server administrator’s password.
    -clusterPropertiesFile Mandatory The 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 Server artifacts. The script adds a new member to the cluster that is specified in the configureDSCluster.properties file that you pass as a parameter.

When the script completes, the cluster is up and running with the new node.