How to synchronize a node in WebSphere

Home > Search > How-to
  by

A synchronization is needed after a change is made to the master repository, to sync one or more managed nodes to the updated master repository. Only managed nodes can be synchronized - an unmanaged node cannot be sychronized. Following are the ways a synchronization can occur.

  • Auto synchronization
  • Using WebSphere web console
  • Using syncNode.sh or syncNode.bat command
  • Application Server startup with Startup Synchronization flag checked
  • Node federation by addNode process
  • Restart JMX call on NodeAgent MBean if syncFirst is set to true

An auto synchronization occurs shortly after a change is made to the master repository. For example, if a new app is deployed to a managed node, the node agent will usually automatically synchronized the managed node in one or two minutes.

Following are the synchronization types.

  • Partial synchronization
  • Full synchronization

 


Partial synchronization

With a partial synchronization, only files that the deployment manager thinks have changed will be synchronized. A partial synchronization takes less time than a full synchronization.

  1. In the left panel of the WebSphere web console, expand System administration.
  2. Select Nodes.
  3. Check the node that you would like to sync, and select Synchronize.

After selecting Synchronize, message "successfully initiated synchronization" should be displayed.

 

The managed node can also be synchronized using the syncNode.sh (Linux) or syncNode.bat (Windows) command. This command requires the node agent to be stopped.

~]# /opt/IBM/WebSphere/AppServer/bin/syncNode.sh

 

The managed node can also be synchronized using wsadmin. In this example, a variable named myNode which is associated with Node01, and then the node is synchronized.

# Jacl
set myNode [$AdminControl completeObjectName type=NodeSync,process=nodeagent,node=Node01,*]
$AdminControl invoke $myNode sync

# Jython
myNode = AdminControl.completeObjectName('type=NodeSync,process=nodeagent,node=Node01,*')
AdminControl.invoke(myNode, 'sync')

 


Full synchronization

With a full synchronization, all file will be synchronized. A full synchronization takes more time than a partial synchronization.

  1. In the left panel of the WebSphere web console, expand System administration.
  2. Select Nodes.
  3. Check the node that you would like to sync, and select Full Resynchronize.

After selecting Synchronize, message "successfully initiated synchronization" should be displayed.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments