How to set up an Alfresco cluster on my local environment

Install an alfresco instance following the standard procedure, but in the last step, you should deselect all the options, and press finish.

Now, you have set up the first node. Let’s go for the second!!

Again install an alfresco instance following the standard procedure, but in this case, you should select the installation type “Advanced” instead of “Easy”.

Then, select the default configuration for all the next screens

Until Tomcat Port Configuration screen. Here, change the first 8 of each port by 7. We do that in order to avoid port conflict between nodes.

Then, select again the default configuration for all the screens, except the last one. In this screen, again, deselect all the options, and press finish.

Now, for both nodes, go to <alfresco-installation>tomcat/shared/clases/alfresco-global.properties, and add the following clustering configuration

##Clustering Properties
hazelcast.jmx=true
alfresco.hazelcast.password=asd
alfresco.cluster.enabled=true
#alfresco.hazelcast.autoinc.port=true
alfresco.hazelcast.mancenter.enabled=true
alfresco.hazelcast.mancenter.url=http://localhost:8085/mancenter

Time to test your installation!!
First, run the tomcat and your first installation’s database

And, for the second installation, only run the tomcat server.

Finally, you can visit the different nodes in theses urls:
node 1: http://127.0.0.1:8080/share
node 2: http://127.0.0.1:7080/share