Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
This document describes how to set up an Alfresco v4.2 repository server cluster. It does not describe the details of non-clustering specific set up, please refer to the main documentation for this information. Additionally, this document does not describe how to set up Alfresco Share.
By default, all enterprise servers connected to the same database will form a repository cluster.
Follow these steps for each server in the cluster:
In many cases it is not necessary to apply any clustering-specific configuration - just starting the servers will result in a cluster. Supposing you have two cluster members on IP addresses 10.244.50.101 and 10.244.50.102. Upon starting the first member, a log message similar to the following should be seen:
2013-08-05 17:06:31,794 INFO [cluster.core.ClusteringBootstrap] [Thread-3] Cluster started,
name: MainRepository-2c0aa5c6-e38a-4f64-bd29-1a7cf9894350
2013-08-05 17:06:31,797 INFO [cluster.core.ClusteringBootstrap] [Thread-3] Current cluster members:
10.244.50.101:5701 (hostname: repo1.local)
This shows that a cluster name has been automatically generated, based on the repository name (MainRepository) and a UUID (a random/unique identifier). The cluster has then been started and the cluster members listed - at the moment, only the one cluster member is present.
During startup of the second member, log entries similar to the following should be shown:
2013-08-05 17:06:58,350 INFO [cluster.core.ClusteringBootstrap] [Thread-3] Cluster started,
name: MainRepository-2c0aa5c6-e38a-4f64-bd29-1a7cf9894350
2013-08-05 17:06:58,353 INFO [cluster.core.ClusteringBootstrap] [Thread-3] Current cluster members:
10.244.50.102:5701 (hostname: repo2.local)
10.244.50.101:5701 (hostname: repo1.local)
The same cluster name is shown of course, followed by the current member list - now both members are in the cluster.
The quickest, easiest way to test the cluster is via the new Admin Console. This is available on the URL:
http(s)://<repository-host>:<port>/alfresco/service/enterprise/admin
For the example cluster above, open the first member's Admin Console in a browser using the URL http://repo1:8080/alfresco/service/enterprise/admin
It is then possible to access cluster information by clicking the link 'Repository Server Clustering', or by visiting the URL http(s)://<repository-host>:<port>/alfresco/service/enterprise/admin/admin-clustering
Here you will find information regarding the current cluster members as well as a button at the bottom of the page labelled 'Validate Cluster' - click on this to start a quick test that will check communications are available between each pair of cluster members.
The most common clustering-related properties are shown below. Please note that all properties are optional.
Property name | Default value | Description |
---|---|---|
alfresco.cluster.enabled | true | Enables clustering. |
alfresco.cluster.interface | Specifies a particular network interface to use for clustering. May be wildcarded, e.g. 10.256.*.* would mean attempt to bind to the interface having an IP address beginning “10.256.”. | |
alfresco.cluster.nodetype | Repository Server | Not normally used. Human-friendly description of the cluster member – as shown in JMX under “non-clustered servers”. This is useful to give a name to non-clustered servers such as a transformation server that it attached to the same database as the cluster, but not participating in it (e.g. alfresco.cluster.enabled=false) |
alfresco.hazelcast.password | alfrescocluster | Password used by the cluster members to access/join the Hazelcast cluster. |
alfresco.hazelcast.port | 5701 | Specifies the port to use for clustering. |
alfresco.hazelcast.autoinc.port | false | If set to true, Hazelcast will try several times to find a free port starting at the value of alfresco.hazelcast.port. Not recommended. |
alfresco.hazelcast.mancenter.enabled | false | If enabled, the server will push stats and other useful information to Hazelcast’s “mancenter” dashboard application. |
alfresco.hazelcast.mancenter.url | http://localhost:8080/mancenter | The URL where the mancenter application may be found (alfresco.hazelcast.mancenter.enabled must be true for this to have any effect). |
The hazelcast diagnostics and reporting application – named mancenter – is a useful addition to an Alfresco repository cluster. It may be installed on any servlet container and could for example be installed on the same server as the load balancer (though you probably wouldn’t do this in a production environment).
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.