Sunday, April 1, 2018

FW: Solr main replica down, another replica taking over

-----Original Message-----
From: Zheng Lin Edwin Yeo [mailto:edwinyeozl@gmail.com]
Sent: 20 March 2018 13:52
To: solr-user@lucene.apache.org
Subject: Solr main replica down, another replica taking over

Hi,

We have a Solr setup with 2 replicas.

Main replica (usually the leader):
http://192.168.2.11:8983/solr

Other replica:
http://192.168.2.12:8984/solr

When the main replica is down, the other replica will correctly take over as
the leader. Usually when this happens, the indexing using post.jar can still
go on.

However, for query that are using URL, if the URL is still pointing to the
main replica http://192.168.2.11:8983/solr, it will not go through. We have
to manually change the URL to point it to the other replica
http://192.168.2.12:8984/solr before the query can work.

Is there anyway that we can make this automatic?

We are using Solr 7.2.1.

Regards,
Edwin

No comments:

Post a Comment