11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Solr</strong>Cloud<br />

<strong>Apache</strong> <strong>Solr</strong> includes the ability to set up a cluster of <strong>Solr</strong> servers that combines fault tolerance and high<br />

availability. Called <strong>Solr</strong>Cloud, these capabilities provide distributed indexing and search capabilities, supporting<br />

the following features:<br />

Central configuration for the entire cluster<br />

Automatic load balancing and fail-over for queries<br />

ZooKeeper integration for cluster coordination and configuration.<br />

<strong>Solr</strong>Cloud is flexible distributed search and indexing, without a master node to allocate nodes, shards and<br />

replicas. Instead, <strong>Solr</strong> uses ZooKeeper to manage these locations, depending on configuration files and<br />

schemas. Documents can be sent to any server and ZooKeeper will figure it out.<br />

In this section, we'll cover everything you need to know about using <strong>Solr</strong> in <strong>Solr</strong>Cloud mode. We've split up the<br />

details into the following topics:<br />

Getting Started with <strong>Solr</strong>Cloud<br />

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

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

Distributed Requests<br />

Read and Write Side Fault Tolerance<br />

<strong>Solr</strong>Cloud Configuration and Parameters<br />

Setting Up an External ZooKeeper Ensemble<br />

Using ZooKeeper to Manage Configuration Files<br />

ZooKeeper Access Control<br />

Collections API<br />

Parameter <strong>Reference</strong><br />

Command Line Utilities<br />

<strong>Solr</strong>Cloud with Legacy Configuration Files<br />

ConfigSets API<br />

Rule-based Replica Placement<br />

Cross Data Center Replication (CDCR)<br />

Getting Started with <strong>Solr</strong>Cloud<br />

<strong>Solr</strong>Cloud is designed to provide a highly available, fault tolerant environment for distributing your indexed<br />

content and query requests across multiple servers. It's a system in which data is organized into multiple pieces,<br />

or shards, that can be hosted on multiple machines, with replicas providing redundancy for both scalability and<br />

fault tolerance, and a ZooKeeper server that helps manage the overall structure so that both indexing and search<br />

requests can be routed properly.<br />

This section explains <strong>Solr</strong>Cloud and its inner workings in detail, but before you dive in, it's best to have an idea of<br />

what it is you're trying to accomplish. This page provides a simple tutorial to start <strong>Solr</strong> in <strong>Solr</strong>Cloud mode, so you<br />

can begin to get a sense for how shards interact with each other during indexing and when serving queries. To<br />

that end, we'll use simple examples of configuring <strong>Solr</strong>Cloud on a single machine, which is obviously not a real<br />

production environment, which would include several servers or virtual machines. In a real production<br />

environment, you'll also use the real machine names instead of "localhost" which we've used here.<br />

In this section you will learn how to start a <strong>Solr</strong>Cloud cluster using startup scripts and a specific configset.<br />

This tutorial assumes that you're already familiar with the basics of using <strong>Solr</strong>. If you need a refresher,<br />

please see the Getting Started section to get a grounding in <strong>Solr</strong> concepts. If you load documents as part<br />

of that exercise, you should start over with a fresh <strong>Solr</strong> installation for these <strong>Solr</strong>Cloud tutorials.<br />

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

544

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

Saved successfully!

Ooh no, something went wrong!