Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Is there a way to script clustering a bunch of CQ5 servers without having to restart the instances a couple of time?

Avatar

Avatar
Validate 100
Level 4
LinearGradient
Level 4

Likes

22 likes

Total Posts

208 posts

Correct Reply

1 solution
Top badges earned
Validate 100
Validate 50
Validate 25
Validate 10
Validate 1
View profile

Avatar
Validate 100
Level 4
LinearGradient
Level 4

Likes

22 likes

Total Posts

208 posts

Correct Reply

1 solution
Top badges earned
Validate 100
Validate 50
Validate 25
Validate 10
Validate 1
View profile
LinearGradient
Level 4

15-10-2015

Hi,

In CRX Clustering, the instructions for setting up a cluster are outlined as:

  • 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.

Is there a way to avoid this stop/start sequence, mainly to save some time when bootstrapping new instances on EC2?

Thanks in advance.