Running the configureDCCluster script to create a cluster

After you have augmented the default management profile, you can run the script that configures Decision Center on a WebSphere® Application Server cluster.

Before you begin

Before you start the script to augment the profile, you must set the ODM_HOME environment variable. The configuration script that you run in step 2 uses that variable.

About this task

After you have augmented the management profile, you set the cluster configuration properties, and run the configuration script.
Note: Run the configuration script to create the cluster and configure the specified target node as the first node. To add a new cluster member and configure an additional node, see Running the addNodeToDCCluster script. Alternatively, you can manually create the first cluster member and configure the execution unit (XU) and the datasource for the additional nodes.

Procedure

  1. Edit the configureDCCluster.properties file to set the 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 can be the name of an existing cluster. If no cluster exists yet, a cluster is created. The default name is DecisionCenterCluster
    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/db2jcc4.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. Optional: Assign roles to users and groups.
    To set up permissions for Decision Center, create a text file under the profileTemplates/rules/actions/scripts/was directory. The file name must match the application name that is used in the script: teamserver.roles. The file contents must respect the following format:
    #custom roles if needed (values separated by comma)
    custom_roles=<custom_role1>,<custom_role2>
    #list of users mapped with a role (values separated by pipe |)
    <role_name>.users=<user1>|<user2>
    #groups mapped with a role (values separated by pipe |)
    <role_name>.groups=<group1>|<group2>

    In the example, the group names match the role names, but you can name your groups differently.

    For example:

    Configure the default users and dedicated groups for Decision Center in teamserver.roles:
    custom_roles=mycustomrole
    rtsAdministrator.users=rtsAdmin
    rtsUser.users=rtsUser1
    rtsConfigManager.users=rtsConfig
    rtsInstaller.users=rtsAdmin
    mycustomrole.users=Bill Smith
    rtsAdministrator.groups=rtsAdministrator
    rtsUser.groups=rtsUser
    rtsConfigManager.groups=rtsConfigManager
    rtsInstaller.groups=rtsAdministrator|rtsInstaller
    mycustomrole.groups=mycustomgroup
  3. Navigate to the profiles/Dmgr01/bin directory and start the configureDCCluster 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: configureDCCluster[.bat|.sh|.ksh] -ParameterName1 parameterValue1 -ParameterName2 parameterValue2 ... .

    • On Windows:
      <WAS_InstallDir>\profiles\Dmgr01\bin\configureDCCluster.bat
       -dmgrAdminUsername websphere -dmgrAdminPassword websphere
       -clusterPropertiesFile <WAS_InstallDir>\profiles\Dmgr01\bin\rules\configureDCCluster.properties
       -createNode -targetNodeName DecisionCenterNode01 -dmgrHostName localhost -dmgrPort 8879
    • On UNIX:
      <WAS_InstallDir>/profiles/Dmgr01/bin/configureDCCluster.sh
       -dmgrAdminUsername websphere -dmgrAdminPassword websphere
       -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDCCluster.properties
       -createNode -targetNodeName DecisionCenterNode01 -dmgrHostName localhost -dmgrPort 8879
    • On HP-UX:
      <WAS_InstallDir>/profiles/Dmgr01/bin/configureDCCluster.ksh
       -dmgrAdminUsername websphere -dmgrAdminPassword websphere
       -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDCCluster.properties
       -createNode -targetNodeName DecisionCenterNode01 -dmgrHostName localhost -dmgrPort 8879
    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.
    -uninstall Optional Removes all the applications and resources from the cluster. The cluster itself is not removed because it might contain other applications. See Uninstalling Decision Center from a cluster.
    -createNode Optional If you specify this parameter, the script creates a default node profile with the name set in the -targetNodeName parameter.
    -targetNodeName Optional By default, the name of the target installation node is set to RulesNode01.
    -dmgrHostName Optional Use this parameter to specify the name of the host on which the deployment manager is located. This parameter is mandatory if you create the target node by setting the -targetNodeName parameter.
    -dmgrPort Optional The SOAP TCP port of the deployment manager. By default, 8879.

Results

The script performs the following actions:
  • Installs the JDBC provider and the data source at node level.
  • Installs the Decision Center application at the cluster level. Users are mapped to application groups when an application is deployed.
  • Starts the deployment manager server if it is not already started.
  • Configures security.
  • Creates the rtsAdmin, rtsInstaller, rtsUser1, and rtsConfig users.
  • Configures users and groups.
  • Maps users and groups to roles.
  • Starts the cluster, servers, and applications.
When the script completes, the cluster is up and running. The user should then configure the load balancing system, such as IBM® HTTP Server (IHS).
Note: The Decision Center EAR file is very large. Therefore, one or more steps in the configureDCCluster script may fail due to hardware limitations or other environment constraints. If so, address the issue before rerunning the script.