CreatePortalCluster - cws-khuntly/WebSphere GitHub Wiki
date: 2025-05-08 14:07:11 created: 2025-05-08 14:07:03 categories:
- WebSphere / Server Build / Portal Server / Primary Node / Clustering
Login to the Portal host via SSH
Export the profile name variable:
declare -x PROFILE_NAME=XXX
Source setupCmdLine.sh:
source /opt/IBM/WebSphere/profiles/${PROFILE_NAME}/bin/setupCmdLine.sh
Export the WAS_INSTALL_ROOT variable:
declare -x WAS_INSTALL_ROOT="/opt/IBM/WebSphere/AppServer"
Export the deployment manager hostname:
declare -x DMGR_HOSTNAME=XXX
Update ${WAS_INSTALL_ROOT}/bin/wsadmin.sh
- Name: PERF_JVM_OPTIONS
- Current value: -Xms256m -Xmx256m -Xquickstart
- New value: -Xms1024m -Xmx1024m -Xquickstart
${USER_INSTALL_ROOT}/ConfigEngine/ConfigEngine.sh \
-DClusterName=PortalCluster \
-DWasRemoteHostName=${DMGR_HOSTNAME} -DWasSoapPort=8879 \
-DPrimaryNode=true cluster-node-config-post-federation
Update /opt/IBM/WebSphere/PortalServer/search/wp.search.service/config/includes/wp.search.service_cfg.xml, changing all instances of failonerror="yes" to failonerror="no"
sed -i.bk "s/failonerror=\"yes\"/failonerror=\"no\"/g" /opt/IBM/WebSphere/PortalServer/search/wp.search.service/config/includes/wp.search.service_cfg.xml
If this is the first node in the cluster:
${USER_INSTALL_ROOT}/ConfigEngine/ConfigEngine.sh \
-DClusterName=PortalCluster \
-DWasRemoteHostName=${DMGR_HOSTNAME} -DWasSoapPort=8879 \
-DPrimaryNode=true cluster-node-config-cluster-setup
Additional cluster nodes:
${USER_INSTALL_ROOT}/ConfigEngine/ConfigEngine.sh \
-DClusterName=PortalCluster \
-DWasRemoteHostName=${DMGR_HOSTNAME} -DWasSoapPort=8879 \
-DPrimaryNode=false cluster-node-config-cluster-setup-additional