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.

Managing <strong>Solr</strong><br />

This section describes how to run <strong>Solr</strong> and how to look at <strong>Solr</strong> when it is running. It contains the following<br />

sections:<br />

Taking <strong>Solr</strong> to Production: Describes how to install <strong>Solr</strong> as a service on Linux for production environments.<br />

Securing <strong>Solr</strong>: How to use the Basic and Kerberos authentication and rule-based authorization plugins for <strong>Solr</strong>,<br />

and how to enable SSL.<br />

Running <strong>Solr</strong> on HDFS: How to use HDFS to store your <strong>Solr</strong> indexes and transaction logs.<br />

Making and Restoring Backups of <strong>Solr</strong>Cores: Describes backup strategies for your <strong>Solr</strong> indexes.<br />

Configuring Logging: Describes how to configure logging for <strong>Solr</strong>.<br />

Using JMX with <strong>Solr</strong>: Describes how to use Java Management Extensions with <strong>Solr</strong>.<br />

MBean Request Handler: How to use <strong>Solr</strong>'s MBeans for programmatic access to the system plugins and stats.<br />

Taking <strong>Solr</strong> to Production<br />

This section provides guidance on how to setup <strong>Solr</strong> to run in production on *nix platforms, such as Ubuntu.<br />

Specifically, we’ll walk through the process of setting up to run a single <strong>Solr</strong> instance on a Linux host and then<br />

provide tips on how to support multiple <strong>Solr</strong> nodes running on the same host.<br />

Service Installation Script<br />

Planning your directory structure<br />

<strong>Solr</strong> Installation Directory<br />

Separate Directory for Writable Files<br />

Create the <strong>Solr</strong> user<br />

Run the <strong>Solr</strong> Installation Script<br />

<strong>Solr</strong> Home Directory<br />

Environment overrides include file<br />

Log settings<br />

init.d script<br />

Progress Check<br />

Fine tune your production setup<br />

Memory and GC Settings<br />

Out-of-Memory Shutdown Hook<br />

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

ZooKeeper chroot<br />

<strong>Solr</strong> Hostname<br />

Override settings in solrconfig.xml<br />

Enable Remote JMX Access<br />

Running multiple <strong>Solr</strong> nodes per host<br />

Service Installation Script<br />

<strong>Solr</strong> includes a service installation script ( bin/install_solr_service.sh) to help you install <strong>Solr</strong> as a<br />

service on Linux. Currently, the script only supports Red Hat, Ubuntu, Debian, and SUSE Linux distributions.<br />

Before running the script, you need to determine a few parameters about your setup. Specifically, you need to<br />

decide where to install <strong>Solr</strong> and which system user should be the owner of the <strong>Solr</strong> files and process.<br />

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

503

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

Saved successfully!

Ooh no, something went wrong!