Re: Pointing 3 Solr Servers to a 3-node Zookeeper Cluster

2018-06-01 Thread THADC
understood. Thank you!



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Pointing 3 Solr Servers to a 3-node Zookeeper Cluster

2018-05-31 Thread Shawn Heisey
On 5/31/2018 10:30 AM, THADC wrote:
> I have a three-node zookeeper cluster running on ports 2181, 2182, and 2183.
> I also am creating three solr server nodes (running as solr cloud
> instances). I want the three solr nodes (on ports 7574, 8983, and 8990) to
> be in that zookeeper cluster. Since the three zookeeper nodes are in the
> same cluster, can I simply point each solr node arbitrarily to one of the
> three zookeeper nodes? For instance like:
>
> $./bin/./bin/solr start -c -p 7574 -z localhost:2181
> $./bin/./bin/solr start -c -p 8983 -z localhost:2181
> $./bin/./bin/solr start -c -p 8990 -z localhost:2181

No.  Each Solr instance will need to be pointed at all the zookeeper
servers.

bin/solr start -p 7574 -z localhost:2181,localhost:2182,localhost:2183
bin/solr start -p 8983 -z localhost:2181,localhost:2182,localhost:2183
bin/solr start -p 8990 -z localhost:2181,localhost:2182,localhost:2183

If you don't do that, then a failure of the server in the -z parameter
will mean that the Solr instance cannot talk to zookeeper at all, which
is going to cause problems.

Note that with all the services on the same server, you have no
redundancy. If that server fails, everything's down. If you're really
only going to have one server, then you might as well only have one Solr
instance and one ZK instance.

For production, I would also recommend using a chroot, which would
change the -z parameter a little bit.

https://lucene.apache.org/solr/guide/7_3/taking-solr-to-production.html#zookeeper-chroot

Thanks,
Shawn