You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zeng Lames <le...@gmail.com> on 2013/01/04 07:20:18 UTC
What can we do if one shard's index crash
Hi,
we have 3 shards (2 nodes per shard) for one collection. now wanna to know
if one node of one shard (say node A of shard1) crash,
1.what can we do and how?
2.does Solr will recovery the index from leader node
3.if we delete the crash node's index files, can leader replica index to it?
thanks!
--
Best Wishes!
Lames
Re: What can we do if one shard's index crash
Posted by Erick Erickson <er...@gmail.com>.
First, I'm assuming SolrCloud with Zookeeper etc.
1> Don't do anything. If Node A is the leader, the replica for that shard
will become the leader.
2> This is a little unclear. There are two cases, a> the leader crashed or
b> the replica crashed.
a> no problem, distributed indexing means that when the
indexing call returns, all documents have been written to all
replicas, so the replica is up-to-date (and will be elected leader
in your case)
b> when the replica comes back up, it is automatically synched
from the leader.
3> yes, although you shouldn't have to.
Best
Erick
On Fri, Jan 4, 2013 at 1:20 AM, Zeng Lames <le...@gmail.com> wrote:
> Hi,
>
> we have 3 shards (2 nodes per shard) for one collection. now wanna to know
> if one node of one shard (say node A of shard1) crash,
> 1.what can we do and how?
> 2.does Solr will recovery the index from leader node
> 3.if we delete the crash node's index files, can leader replica index to
> it?
>
> thanks!
>
> --
> Best Wishes!
> Lames
>