Solrcloud is a distributed solution that is based on zookeeper and SOLR and can be easily understood as a cluster that can provide distributed queries and distributed write indexes.
The structure of the solrcloud is roughly the same, a solrcloud consists of multiple shared nodes, and a shared one includes the SOLR node, where each shared has a leader SOLR node and multiple replica nodes.
The content of each SOLR node is the same.
let's see how to deploy Solrcloud on the Windows platform.
Need to download the next program, specific installation configuration can be in the previous sections of the tutorial
Tomcat 8.0 Remember that if you are using the installation version, the installation version is not catalina.bat this file
SOLR 4.8
Here we demonstrate a stand-alone deployment, where zookeeper and SOLR are deployed on the same server.
1. Configure Solr.xml
Locate the Solr.xml configuration file under the D:\Server\Solr folder and add the following node
<solr><cores leadervotewait= "${leadervotewait:15000}" hostcontext= "${hostcontext:}" hostPort= "8040" host= "${host:}" defaultcorename= "Deals" adminpath= "/admin/cores" ><core instancedir= "Collection1" Name= " Collection1 "/></cores></solr>
Hostcontext: Specify the service name
Hostport: Specify port
Leadervotewait: Election leader wait time ms
2. Configure Tomcat Parameters
In the Start menu, locate Monitor tomcat, open and switch to the Java tab, in the Java options Add the following parameter configuration
-dbootstrap_confdir=d:\server\solr\collection1/conf
-dcollection.configname=clusterconf
-dzkrun
-dzkhost=localhost:9040
-dnumshards=1
The following interface
Restart Tomcat, open the address http://localhost:8040/solr/#/~cloud and you'll see the effect.
Reference: http://demi-panda.com/2013/03/30/solr-cloud-install/