Alfresco Live Replication Between Two Or More Live Nodes

Alfresco live replication between two or more live nodes

Alfresco server configuration checked for version 3.4, 4.0 and 5.0 community.

Table of Contents

What is Alfresco?

Alfresco is the DMS product and in all these type of system we don't want to loose our document either by hardware or software failure for that very purpose we need to have some solid product with replication feature inbuilt that will take care for same.

Alfresco content management system come with the same idea to serve you with better replication mechanism with very little configuration at user or administrator end.

What is Replication and what it means?

Original meaning of Replication is Reproducibility in which we are creating duplicate of either any object, data etc to be used for the same purpose as original one.

Types of replication:

There are basically two type of replication of data within the content store.

1. Hot : In which there is no need to restart server for replicating data.

2. Cold : In which server needed to be restarted for replication job to be done.

Use Cases :

There are many practical cases where we need the replication of data among the various server.

1. In the Load balancing environment we have more than one live node so there  we need to keep data in shrink with two or more nodes so that if one node is down other should be there to serve the request.

2. Recovery of the lost data from the live instance.

There are many cases where we need replication….

Load balance environment setup:

For setup the load balance environment we have many blogs that serve you with better dish but our main concern is not have a load balanced environment here.

Here we give you an idea how we can replicate data between two or more live nodes at run time and how you will configure live replication between two or more Alfresco server.

Ways to setup replication.

There are many ways how we can setup replication between two or more nodes using Alfresco server two out of them are.

1. Replication using alfresco live configuration.

2. Replication using database and repository replication.

Here in this blog we share configuration how to setup live replication between two alfresco instances working on same or different server.

Replication using alfresco live configuration.

1. First of all we have to make replication active for both of the Alfresco server using file located in {alfresco}/tomcat/shared/classes/ folder by adding following line at the end of the file.


2. Restart your server. Now replication is active on each of the Alfresco server installation.

3. Login as admin user on source alfresco server.

4. Now we have to create destination target on source alfresco server for that we have to create new folder in Repository> Data Dictionary> Transfers> Transfer Target Groups> Default Group folder like.


all the folder that are created in Default Group is of type trx:transferTarget because rule is already set on Default Group to transform all the folder created init into trx:transferTarget type.

5. Now we have to add some properties like Host-name, Port, User-name and Password of remote Alfresco server etc. Just Go  to edit properties of new target folder created and add Target Host-name, port, Username, Password, Enable or not just like shown in image.


6. If all is done. Now create new transformation job using Admin Tools in Alfresco 5.0 and Tools option in Alfresco 4.0. Then go to Replication Jobs Option and click on Create Job.


7. Add details required like Job Name, Description, Source Item to be replicated, Locate Transfer target we just created in above step, Schedule Job with start date, time and repeat interval, Enabled or not just like image attached.


8. Now click on the Run Job to start replication job.


9. Check whether replication job working or not if there is error then please rectify error if not then go to the Target Alfresco server login as Admin then check whether same folder set in the replication job is created on Target server or not.


10. Now upload some content in same folder set for replication in source folder and check if its replicated on target server.



11. This is how live replication works in Alfreso in my case i have two alfresco installation on same server we can have different installation on different server in same case also that do work in same manner.

12. Document that is replicated on remote server is view only we can't edit document or folder replicated for that to work we have to change configuration in share-config-custom.xml file located at {alfresco}/tomcat/shared/classes/alfresco/web-extension/ folder at target server end.

<config evaluator="string-compare" condition="Replication">
To discover a Repository Id, browse to the remote server's CMIS landing page at:
The Repository Id field is found under the "CMIS Repository Information" expandable panel.

Example config entry:
<share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>

<config evaluator="string-compare" condition="Replication">
<share-url repositoryId="2490a26b-dc4f-4d3c-8379-c067d8b1103a">http://{sourceServerHOST}:{sourceServerPORT}/share/</share-url>

where repositoryId is the source server cmis repository ID which we can get by hitting URL http://{sourceServerHOST}:{sourceServerPORT}/alfresco/service/cmis/index.html as shown in image.


13. Restart Your target alfresco server for making configuration active.

14. Now check whether you have edit rights on folder and document replicate to target folder.

For more hacks about alfresco visit

Leave a Reply

Your email address will not be published. Required fields are marked *