Is it possible to script clustering a fresh pair of running CQ author instances without having to stop and start them in the process?
Hi,
According to CRX Clustering, for Manual Slave Join, in order to create a cluster of CQ instances manually, the following steps should be taken:
- Copy the files crx-quickstart-*.jar and and license.properties to the desired directory.
- Start the instance: java -Xmx512m -jar *.jar
- Verify that the instance is up and running, then stop the instance.
- In the file crx-quickstart/repositorycluster.properties, add the IP address of the slave instance you are adding below (if that slave is on a different machine, otherwise this step is not needed).
- Stop the instance.
- If a shared data store is to be be used:
- Change crx-quickstart/repository/repository.xml, as described in Shared Data Store and Data Store, above.
- Assuming you have configured <shared>/datastore/ as the shared location, copy the contents of the crx-quickstart/repository/repository/datastore to the directory <shared>/datastore.
- Start the instance, and verify that it still works.
For Manual Slave Cloning, similarly the master instance has to be stopped and started during clustering.
Is there a way to avoid the stop/start steps when we have two fresh and running CQ instances that are installed on two different hosts. When in an AWS EC2 environment, the repository is stored on EBS volumes, stopping and starting an instance can take a considerable amount of time, and I am looking for a way to avoid it.
Thanks in advance.