This documentation is for WSO2 ESB version 4.5.0. View documentation for the latest release.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Deployment Synchronizer provides the capability to synchronize deployment artifacts across the product cluster in a clustered environment. It is used to keep the axis2 repository of WSO2 products (by default, it is <product-home>/repository/deployment/server/) in sync between all the cluster nodes. Since axis2 repository includes user-uploaded service archives, modules, service metadata etc, it's important that all the cluster nodes have the same content.This functionality is facilitated by the following feature in the WSO2 feature repository:

Name: WSO2 Carbon - Deployment Synchronizer Feature
Identifier: org.wso2.carbon.deployment.synchronizer.feature.group 

If it is not included in your product by default, you can add by installing the above feature using the instructions given in section, Feature Management.

The Deployment Synchronizer feature can be used to synchronize the main repository of a Carbon server with a collection in the registry. This feature is sometimes also referred to as the registry-based repository synchronizer. The deployment synchronizer has a number of use cases:

  • Maintaining an up-to-date backup of the Carbon repository
  • Sharing a single Carbon repository among multiple servers (through a shared registry)
  • Enforcing artifact updates in the registry to be deployed on a server at runtime.

Assume a cluster of Carbon servers that share the configuration registry. With the deployment synchronizer, it is possible to maintain all the nodes in the cluster in sync through the shared registry. One of the nodes can be designated as the master node and it can upload its local repository to the registry using the deployment synchronizer. Other nodes (slave nodes) can then download the same repository from the registry and deploy locally. To support this use case, synchronizer has to be run in auto commit mode in the master node. When in auto commit mode, it will periodically upload the changed artifacts in the local repository to the registry. Similarly, slave nodes should run the synchronizer in the auto checkout mode. If needed, registry eventing can be employed to run the checkout operations so that a checkout will be made only when some artifact has changed in the shared registry.

Note

Carbon repository is located in the repository/deployment/server directory by default. Once enabled, deployment synchronizer uploads the contents of this directory to a collection named repository/deployment/server in the configuration registry (this is configurable).

For instructions on configuring the Deployment Synchronizer, refer to Configuring the Deployment Synchronizer.

  • No labels