Install multiple clusters in a single cell on IBM i
Create a new, independent IBM WebSphere Portal cluster in a cell where a WebSphere Portal cluster already exists.
- Prerequisites
- Install WebSphere Portal on IBM i on the primary node
In the following steps, Cluster A is used to describe the existing cluster. Portal B is used to describe the new server profile that is the basis for the new cluster definition, Cluster B.
To install multiple clusters in a single cell:
- If necessary, upgrade Cluster A, including the dmgr node, to the current, supported hardware and software levels and to the current version of IBM WebSphere Portal. Only upgrade if Cluster B is at a higher version than the existing Cluster A.
- Complete the following tasks to install and configure Portal B; see the links in Related:
Important: Maintain the same number of data sources with identical names to the Cluster A data sources so that data source bindings in the applications can be resolved on every cluster in which they run. If implementing database sharing across the clusters, the previous statement refers to both the shared and non-shared domains; all domains should use the same names.
- Install WebSphere Portal on the primary node
- Configure Portal to use a database
- Optional: Use the same database user ID and password for each identically named domain/data source will allow the existing JAAS Authentication Aliases to be functional. If unique database user ID and password are required, additional manual configuration is needed to create new JAAS Authentication Aliases for each data source and map these accordingly. On the primary node of Cluster A, run the ConfigEngine.sh create-alias-multiple-cluster -DauthDomainList=release,jcr -DWasPassword=dmgr_password to create the new JAAS Authentication Aliases.
...where... authDomainList is set to a list of domains which use unique database user ID and passwords and those domain properties are set correctly in wkplc_comp.properties, including user ID and password.
- If necessary, upgrade Portal B to the current cumulative fix.
- Run the ConfigEngine.sh mapped-app-list-create -DWasPassword=footo build an inventory of Portal B enterprise applications and portlets.
- If the dmgr is configured to use a stand-alone LDAP user registry, update wkplc.properties, located in...
WP_PROFILE/ConfigEngine/properties
on the primary node with the stand-alone LDAP user registry property values from the dmgr. We can find these settings under the heading...
VMM Standalone LDAP configuration
Set WasUserid and WasPassword to the dmgr user ID and password.
- Run the following command from the WP_PROFILE\bin directory to federate Portal B:
addNode.sh dmgr_hostname dmgr_port -includeapps -username wasadmin -password fooThe variables are defined as:
- dmgr_hostname is the TCP/IP host name of the dmgr server
- dmgr_port is the SOAP port number of the dmgr server
- wasadmin and foo are the user ID and password for the dmgr administrator
If the WAS administrator user ID and password for the local node are different than the dmgr administrator user ID and password, add the following parameters:
- -localusername local_wasadmin
- -localpassword local_foo
See the addNode command file for more information about the addNode command and other optional parameters.
If addNode.sh fails for any reason before rerunning the task:
- Remove the node if the AddNode task succeeded in creating the node.
- If items exist, log on to the dmgr and...
- Remove all enterprise applications.
- Remove the WebSphere_Portal server definition.
- Remove the WebSphere Portal JDBC Provider.
- Stop the WebSphere_Portal server on the primary node and verify the following parameters are set correctly in wkplc.properties:
Although we can add these parameters (particularly passwords) directly to any task while creating the cluster, we might want to temporarily add them to the properties file. We can then remove them when we are finished to keep the environment secure.
- Set WasSoapPort to the port used to connect remotely to the dmgr.
- Set WasRemoteHostName to the full host name of the server used to remotely connect to the dmgr.
- Verify that WasUserid is set to the dmgr administrator user ID.
- Verify that WasPassword is set to the dmgr administrator password.
- Verify that PortalAdminPwd is set to the WebSphere Portal administrator password.
- Verify that ClusterName is set.
- Verify that PrimaryNode is set to true.
- Run the ConfigEngine.sh map-apps-to-server -DWasPassword=foo task to determine which applications from the inventory list are no longer mapped to Portal B. The task uses the application profiles already in the cell to restore the mappings. Wait 30 minutes after running this task to allow all EAR files to expand before proceeding to the next step.
- Run the ConfigEngine.sh cluster-node-config-post-federation -DWasPassword=dmgr_password task.
- The node is federated and using the dmgr cell and its user registry. If the admin user ID and group name are different in the WebSphere Portal and dmgr configurations, choose one of the following options depending on your security policies:
- Add the existing admin user ID and group to the dmgr security configuration
- To change the values in the WebSphere Portal configuration to match the dmgr values:
If the dmgr cell is using a stand-alone LDAP user registry, complete these steps after the cluster-node-config-cluster-setup task completes.
- Start the WebSphere_Portal server.
- Verify the required WebSphere Portal admin user ID and group ID are defined in the dmgr user registry that provides security for the cell.
- Run...
./ConfigEngine.sh wp-change-portal-admin-user -DWasPassword=foo -DnewAdminId=newadminid -DnewAdminPw=newpassword -DnewAdminGroupId=newadmingroupid
If the value for newAdminGroupId contains a space; for example Software Group, open wkplc.properties and add the values for newAdminId, newAdminPw, and newAdminGroupId. Save the changes and then run the ConfigEngine.sh wp-change-portal-admin-user -DWasPassword=dmgr_password task.
- WasPassword is set to the administrative password for the dmgr cell
- newAdminId is set to the fully qualified DN of the WebSphere Portal admin user ID in the cell
- newAdminGroupId is set to the fully qualified DN of the group for the WebSphere Portal admin user ID in the cell
- After the task completes, stop the WebSphere_Portal server.
- Restart the WebSphere_Portal server.
on Cluster A. Verify that Cluster A is functionally intact by spot checking pages and portlets and then verify that Portal B is functionally intact by spot checking pages and portlets that you deployed into Portal B before it was federated. Any discrepancies or errors should be corrected now before continuing.
If Portal B is using a nondefault Portal server administrative ID, not wpsadmin, the server will not be functional until the cluster configuration is complete and the Portal administrative ID has been configured to match the Cells security settings.
- To define a cluster using Portal B as the basis:
- Run the ConfigEngine.sh cluster-node-config-cluster-setup -DWasPassword=dmgr_password task.
- Configure the cluster to use an external web server to take advantage of features such as workload management. Choose one of the following options:
- To access the WCM content through an external web server:
- Log on to the dmgr console.
- Select Environment > WebSphere Variables.
- From the Scope drop-down menu, select the option...
Node=nodename, Server=servername
...where Node=nodename is the node containing the portal application server.
- Update the WCM_HOST variable with the fully qualified host name used to access the portal server through the web server or On Demand Router.
- Update the WCM_PORT variable with the port number used to access the portal server through the web server or On Demand Router.
- Save the changes and then restart the dmgr, the node agent(s), and the WebSphere_Portal servers.
- Install any additional nodes to the cell to support additional cluster members for Cluster B identically to the primary node, and then federate as them as secondary nodes and define as cluster members on these nodes. For information about adding additional nodes navigate to Installing WebSphere Portal > Setting up a cluster on IBM i > Prepare additional nodes on IBM i. We can add additional nodes and/or vertical clusters.
- Restart the WebSphere_Portal server.
on Cluster A and Cluster B.
- After setting up the multiple clusters, there are additional tasks that we can complete to ensure a balanced workload and failover support.
- Update the web server configuration to enable user requests to be routed to the new cluster. Refer "Routing requests across clusters" for information about using a web server with multiple clusters in a cell.
- Update the database configuration to share database domains between clusters. Refer to "Sharing database domains between clusters for information about redundancy and failover support.
- If you entered passwords in any of the properties files while creating the cluster, you should remove them for security purposes. See "Deleting passwords from properties files" under Related for information.
Installation of Cluster B is complete. It is now an independent cluster from Cluster A, which means that Cluster B can have its own configuration, set of user portlets, and target community. Any applications that are common between Cluster A and Cluster B are most likely infrastructure or related to administration, and special care needs to be taken to preserve their commonality between clusters and correct maintenance levels.
Parent: Set up multiple clusters on IBM i
Related:
IBM i clustered server: Configure the portal to use a database
Related:
Delete passwords from properties files