JBoss.orgCommunity Documentation

Set up eXo Platform cluster

The following steps describe a typical setup of Platform cluster:

This step is done in the configuration.properties file. This configuration.properties file must be set in the same way on all the cluster nodes. First, point the exo.shared.dir variable to a directory shared between cluster nodes.

exo.shared.dir=/PATH/TO/SHARED/FS

The path is shared, so all nodes will need the read/write access to this path. Then, switch the JCR to the cluster mode.

gatein.jcr.config.type=cluster

In this step, JCR enables the automatic network replication and discovery between other cluster nodes.

You need to indicate the cluster kernel profile to eXo Platform. This can be done by editing the startup script in the bin/gatein.sh folder as below:

EXO_PROFILES="-Dexo.profiles=default,cluster"

or use the start_eXo.sh script with such parameters:

./start_eXo.sh default,cluster

For the initial startup of your JCR cluster, you should only start a single node. This node will initialize the internal JCR database and create the system workspace. Once the initial node is definitely started, you can start the other nodes.

Note

This constraint is only for the initial start. As above, you can start the cluster in any order, but it should be started fully from the single node. After that, others can start in any order or in parallel.

Note

Always start the cluster from a single node, as on initial startup, and then start all others in any order or in parallel. Nodes of the cluster will automatically try to join others at startup. Once they have discovered each other, they will synchronize their state. During the synchronization, the node is not ready to serve requests.