Frequently Asked Questions - SearchStax

The SearchStax® Frequently Asked Questions page includes the following approved question and answer about our Apache Solr Cloud services.

How do I copy my Solr config files from an old deployment to a new one?

We frequently suggest that a client solve a performance or memory issue by upgrading to a more robust SearchStax deployment.

During the upgrade process, the client often wants to copy a set of Solr configuration files from a Zookeeper instance in the old deployment, and write the files to the Zookeeper ensemble of the new deployment. This is easily accomplished using the downconfig and upconfig commands of the .zkcli script. (See zkcli download instructions.)

First, open the Solr dashboard of your old deployment. Drill down through Cloud > Tree > /configs to find the name of the configuration you want to copy.

Solr config display

Run zkcli in a terminal window:

./zkcli.sh -zkhost <zookeeper URL> -cmd downconfig -confdir <local directory> -confname <config name>
where <zookeeper URL> is the URL of one of the Zookeeper servers from the old deployment page; <local directory> is the directory where the files should be written after downloading; and <config name> is the name of the configuration as stored in Zookeeper.

Then upload the config files to the new deployment:

./zkcli.sh -zkhost <zookeeper URLs> -cmd upconfig -confdir <local directory> -confname <config name>
where <zookeeper URLs> is the URL(s) of the Zookeeper server(s) in the new deployment:
Screenshot
<local directory> is the location of the files to upload; and <config name> is the name of the configuration as stored in Zookeeper.

Once the config files are in place, you will have to recreate the collection(s) and reload the data into the new system. Examples of both procedures are in our Quick Start exercise.

We love to answer questions!

Please contact the SearchStax Support Desk immediately if you have any question about Solr Cloud deployments.

Return to Frequently Asked Questions.