lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@corp.aol.com>
Subject Re: Solr Replication: How to restore data from last snapshot
Date Sat, 07 Nov 2009 06:48:31 GMT
if it is a single core you will have to restart the master

On Sat, Nov 7, 2009 at 1:55 AM, Osborn Chan <ochan@shutterfly.com> wrote:
> Thanks. But I have following use cases:
>
> 1) Master index is corrupted, but it didn't replicate to slave servers.
>        - In this case, I only need to restore to last snapshot.
> 2) Master index is corrupted, and it has replicated to slave servers.
>        - In this case, I need to restore to last snapshot, and make sure slave servers
replicate the restored index from index server as well.
>
> Assuming both cases are in production environment, and I cannot shutdown the master and
slave servers.
> Is there any rest API call or something else I can do without manually using linux command
and restart?
>
> Thanks,
>
> Osborn
>
> -----Original Message-----
> From: Matthew Runo [mailto:matthew.runo@gmail.com]
> Sent: Friday, November 06, 2009 12:20 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr Replication: How to restore data from last snapshot
>
> If your master index is corrupt and it hasn't been replicated out, you
> should be able to shut down the server and remove the corrupted index
> files. Then copy the replicated index back onto the master and start
> everything back up.
>
> As far as I know, the indexes on the replicated slaves are exactly
> what you'd have on the master, so this method should work.
>
> --Matthew Runo
>
> On Fri, Nov 6, 2009 at 11:41 AM, Osborn Chan <ochan@shutterfly.com> wrote:
>> Hi,
>>
>> I have followed Solr set up ReplicationHandler for index replication to slave.
>> Do anyone know how to restore corrupted index from snapshot in master, and force
replication of the restored index to slave?
>>
>>
>> Thanks,
>>
>> Osborn
>>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Mime
View raw message