Clustering - cws-khuntly/WebSphere GitHub Wiki


date: 2025-05-08 13:18:29 created: 2025-05-08 13:18:21 categories:

  • WebSphere / Server Build / Application Server / Federation/Clustering

Clustering

Login to the application server host via SSH

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

Export the profile name:

declare -x PROFILE_NAME=XXX

Export the server name:

declare -x TARGET_SERVER=XXX

Update ${WAS_INSTALL_ROOT}/bin/wsadmin.sh

 - Name: PERF_JVM_OPTIONS

  - Current value: -Xms256m -Xmx256m -Xquickstart

  - New value: -Xms1024m -Xmx1024m -Xquickstart

Turn off shell history:

set +o history

Execute the following commands:

${USER_INSTALL_ROOT}/bin/wsadmin.sh -lang jython

 - Replace the variables TARGET_NODE, TARGET_SERVER, and TARGET_CLUSTER with their appropriate values

  - targetServer = AdminConfig.getid(str("/Cell:dmgrCell/Node:{0}/Server:{1}/").format(${TARGET_NODE}, ${TARGET_SERVER}))

  - AdminConfig.convertToCluster(targetServer, str("{0}").format(${TARGET_CLUSTER}))

  - AdminConfig.save()

  - AdminNodeManagement.syncActiveNodes()

Stop the server and nodeagent:

${USER_INSTALL_ROOT}/bin/stopServer.sh ${TARGET_SERVER};

${USER_INSTALL_ROOT}/bin/stopNode.sh

Resynchronize and restart the node:

${USER_INSTALL_ROOT}/bin/syncNode.sh ${DMGR_HOSTNAME} 8879 -restart

${USER_INSTALL_ROOT}/bin/startServer.sh ${TARGET_SERVER};

⚠️ **GitHub.com Fallback** ⚠️