lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrCloud2" by Mark Miller
Date Sat, 21 Jan 2012 17:13:44 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrCloud2" page has been changed by Mark Miller:
http://wiki.apache.org/solr/SolrCloud2?action=diff&rev1=16&rev2=17

  Now since we are running three embedded zookeeper servers as an ensemble, everything can
keep working even if a server is lost. To demonstrate this, kill the exampleB server by pressing
CTRL+C in it's window and then browse to http://localhost:8983/solr/admin/zookeeper.jsp to
verify that the zookeeper service still works.
  
  == ZooKeeper ==
- Multiple Zookeeper servers running together for fault tolerance and high availability is
called an ensemble.  For production, it's recommended that you run an external zookeeper ensemble
rather than having Solr run embedded servers.  See the [[http://zookeeper.apache.org/|Apache
ZooKeeper]] site for more information on downloading and running a zookeeper ensemble. More
specifically, try [[http://zookeeper.apache.org/doc/r3.3.4/zookeeperAdmin.html|here]]
+ Multiple Zookeeper servers running together for fault tolerance and high availability is
called an ensemble.  For production, it's recommended that you run an external zookeeper ensemble
rather than having Solr run embedded servers.  See the [[http://zookeeper.apache.org/|Apache
ZooKeeper]] site for more information on downloading and running a zookeeper ensemble. More
specifically, try [[http://zookeeper.apache.org/doc/r3.3.4/zookeeperStarted.html|Getting Started]]
and [[http://zookeeper.apache.org/doc/r3.3.4/zookeeperAdmin.html|ZooKeeper Admin]]. It's actually
pretty simple to get going. You can stick to having Solr run ZooKeeper, but keep in mind that
a ZooKeeper cluster is not easily changed dynamically. Until further support is added to ZooKeeper,
changes are best done with rolling restarts. Handling this in a separate process from Solr
will usually be preferable. 
+ 
+ In terms of trying to make sure ZooKeeper is setup to be very fast, keep a few things in
mind: Solr does not use ZooKeeper intensively - optimization's are likely not necessary. Also,
while adding more ZooKeeper nodes will help some with read performance, it will slightly hurt
write performance. Again, Solr does not really do much with ZooKeeper when your cluster is
in a steady state.
  
  When Solr runs an embedded zookeeper server, it defaults to using the solr port plus 1000
for the zookeeper client port.  In addition, it defaults to adding one to the client port
for the zookeeper server port, and two for the zookeeper leader election port.  So in the
first example with Solr running at 8983, the embedded zookeeper server used port 9983 for
the client port and 9984,9985 for the server ports.
  

Mime
View raw message