Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrCloud" page has been changed by Mark Miller: http://wiki.apache.org/solr/SolrCloud?action=diff&rev1=49&rev2=50 cd example2B java -Djetty.port=7500 -DzkHost=localhost:9983 -jar start.jar }}} - Refresh the zookeeper browser page [[http://localhost:8983/solr/admin/zookeeper.jsp|Solr Zookeeper Admin UI]] or [[http://localhost:8983/solr/#/cloud|new Solr Zookeeper Admin UI]] and verify that 4 solr nodes are up, and that each shard is present at 2 nodes. + Refresh the zookeeper browser page [[http://localhost:8983/solr/#/cloud|Solr Zookeeper Admin UI]] and verify that 4 solr nodes are up, and that each shard is present at 2 nodes. Because we have been telling Solr that we want two logical shards, starting instances 3 and 4 are assigned to be replicas of instances one and two automatically. @@ -140, +140 @@ cd example2B java -Djetty.port=7500 -DzkHost=localhost:9983,localhost:8574,localhost:9900 -jar start.jar }}} - 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|Solr Zookeeper Admin UI]] or [[http://localhost:8983/solr/#/cloud|new Solr Zookeeper Admin UI]] to verify that the zookeeper service still works. + 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 the [[http://localhost:8983/solr/#/cloud|Solr Zookeeper Admin UI]] 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/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.