11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

startup a <strong>Solr</strong>Cloud cluster using the startup scripts, you can add a new node to it by:<br />

$ mkdir <br />

$ cp <br />

$ bin/solr start -cloud -s solr.home/solr -p -z <br />

Notice that the above requires you to create a <strong>Solr</strong> home directory. You either need to copy solr.xml to the so<br />

lr_home directory, or keep in centrally in ZooKeeper /solr.xml.<br />

Example (with directory structure) that adds a node to an example started with "bin/solr -e cloud":<br />

$ mkdir -p example/cloud/node3/solr<br />

$ cp server/solr/solr.xml example/cloud/node3/solr<br />

$ bin/solr start -cloud -s example/cloud/node3/solr -p 8987 -z localhost:9983<br />

The previous command will start another <strong>Solr</strong> node on port 8987 with <strong>Solr</strong> home set to example/cloud/node3<br />

/solr. The new node will write its log files to example/cloud/node3/logs.<br />

Once you're comfortable with how the <strong>Solr</strong>Cloud example works, we recommend using the process described in<br />

Taking <strong>Solr</strong> to Production for setting up <strong>Solr</strong>Cloud nodes in production.<br />

How <strong>Solr</strong>Cloud Works<br />

The following sections cover provide general information about how various <strong>Solr</strong>Cloud features work. To<br />

understand these features, it's important to first understand a few key concepts that relate to <strong>Solr</strong>Cloud.<br />

Shards and Indexing Data in <strong>Solr</strong>Cloud<br />

Distributed Requests<br />

Read and Write Side Fault Tolerance<br />

If you are already familiar with <strong>Solr</strong>Cloud concepts and basic functionality, you can skip to the section covering S<br />

olrCloud Configuration and Parameters.<br />

Key <strong>Solr</strong>Cloud Concepts<br />

A <strong>Solr</strong>Cloud cluster consists of some "logical" concepts layered on top of some "physical" concepts.<br />

Logical<br />

A Cluster can host multiple Collections of <strong>Solr</strong> Documents.<br />

A collection can be partitioned into multiple Shards, which contain a subset of the Documents in the<br />

Collection.<br />

The number of Shards that a Collection has determines:<br />

The theoretical limit to the number of Documents that Collection can reasonably contain.<br />

The amount of parallelization that is possible for an individual search request.<br />

Physical<br />

A Cluster is made up of one or more <strong>Solr</strong> Nodes, which are running instances of the <strong>Solr</strong> server process.<br />

Each Node can host multiple Cores.<br />

Each Core in a Cluster is a physical Replica for a logical Shard.<br />

Every Replica uses the same configuration specified for the Collection that it is a part of.<br />

The number of Replicas that each Shard has determines:<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

547

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!