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 Rohit Gupta <ro...@in-rev.com> on 2011/06/06 17:24:48 UTC
Master Slave help
Hi,
I have configured my master slave server and everything seems to be running
fine, the replication completed the firsttime it ran. But everytime I go the the
replication link in the admin panel after restarting the server or server
startup I notice the replication starting from scratch or at least the stats
show that.
What could be wrong?
Thanks,
Rohit
Re: Master Slave help
Posted by Rohit Gupta <ro...@in-rev.com>.
thanks Jayendra..
________________________________
From: Jayendra Patil <ja...@gmail.com>
To: solr-user@lucene.apache.org
Sent: Tue, 7 June, 2011 6:55:58 AM
Subject: Re: Master Slave help
Do you mean the replication happens everytime you restart the server ?
If so, you would need to modify the events you want the replication to happen.
Check for the replicateAfter tag and remove the startup option, if you
don't need it.
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<!--Replicate on 'startup' and 'commit'. 'optimize' is also a
valid value for replicateAfter. -->
<str name="replicateAfter">startup</str>
<str name="replicateAfter">commit</str>
<!--Create a backup after 'optimize'. Other values can be
'commit', 'startup'. It is possible to have multiple entries of this
config string. Note that this is just for backup, replication does
not require this. -->
<!-- <str name="backupAfter">optimize</str> -->
<!--If configuration files need to be replicated give the
names here, separated by comma -->
<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</str>
<!--The default value of reservation is 10 secs.See the
documentation below . Normally , you should not need to specify this
-->
<str name="commitReserveDuration">00:00:10</str>
</lst>
</requestHandler>
Regards,
Jayendra
On Mon, Jun 6, 2011 at 11:24 AM, Rohit Gupta <ro...@in-rev.com> wrote:
> Hi,
>
> I have configured my master slave server and everything seems to be running
> fine, the replication completed the firsttime it ran. But everytime I go the
>the
> replication link in the admin panel after restarting the server or server
> startup I notice the replication starting from scratch or at least the stats
> show that.
>
> What could be wrong?
>
> Thanks,
> Rohit
Re: Master Slave help
Posted by Jayendra Patil <ja...@gmail.com>.
Do you mean the replication happens everytime you restart the server ?
If so, you would need to modify the events you want the replication to happen.
Check for the replicateAfter tag and remove the startup option, if you
don't need it.
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<!--Replicate on 'startup' and 'commit'. 'optimize' is also a
valid value for replicateAfter. -->
<str name="replicateAfter">startup</str>
<str name="replicateAfter">commit</str>
<!--Create a backup after 'optimize'. Other values can be
'commit', 'startup'. It is possible to have multiple entries of this
config string. Note that this is just for backup, replication does
not require this. -->
<!-- <str name="backupAfter">optimize</str> -->
<!--If configuration files need to be replicated give the
names here, separated by comma -->
<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</str>
<!--The default value of reservation is 10 secs.See the
documentation below . Normally , you should not need to specify this
-->
<str name="commitReserveDuration">00:00:10</str>
</lst>
</requestHandler>
Regards,
Jayendra
On Mon, Jun 6, 2011 at 11:24 AM, Rohit Gupta <ro...@in-rev.com> wrote:
> Hi,
>
> I have configured my master slave server and everything seems to be running
> fine, the replication completed the firsttime it ran. But everytime I go the the
> replication link in the admin panel after restarting the server or server
> startup I notice the replication starting from scratch or at least the stats
> show that.
>
> What could be wrong?
>
> Thanks,
> Rohit