On 9/13/2013 12:50 PM, Branham, Jeremy [HR] wrote:
Does this sound appropriate then? [assuming no 3rd server]

Server A:
Zoo Keeper
SOLR with 1 shard

Server B:
SOLR with ZK Host parameter set to Server A

Yes, that will work, but if the ZK on server A goes down, the entire cloud is down.

When you create a collection with replicationFactor=2, one replica will be on server A and one replica will be on server B.

If you want to break the index up into multiple shards, you can, you'll also need the maxShardsPerNode parameter when you create the collection, and all shards will have replicas on both machines.

A note about zookeeper and redundancy, and an explanation about why 3 hosts are required: To form a quorum, zookeeper must have the votes of a majority of the hosts in the ensemble. If there are only two hosts, it's not possible for there to be a majority unless both hosts are up, so two hosts is actually worse than one. You need to either have one ZK node or at least three, preferably an odd number.

Thanks,
Shawn

Reply via email to