wenglou13
wenglou13

Reputation: 13

How to setup solr cloud with 2 shards 1 leader and 1 replica and with zookeeper on different machines?

I'm still confused on setting up a solr cloud cluster. The one in the tutorial are setup for localhost binded to different ports. But I wanna know how would it be like using different machines. What do I need? Do I need to extract the downloaded Solr to each machine? Should I setup zookeeper first and set the configuration? Should zookeeper be installed on a different machine which is not a Solr server?

Upvotes: 1

Views: 7168

Answers (1)

Yann
Yann

Reputation: 1019

This tutorial is a lot closer to what you need:

http://solr.pl/en/2013/03/11/solrcloud-howto-2/

If you don't want to run a separate Zookeeper, you can run the embedded Zookeeper on one of your Solr instances by passing -Dzkrun on this instance, and -DzkHost on the other instances to point to the first one.

Upvotes: 2

Related Questions