Hi Shawn,

Thanks for your reply!  We are running Solr 6.4.3 and run multiple
instances of standalone Solr on a server modifying the port for each.  We
run many such servers.

*solrconfig.xml*
 <!-- See
https://cwiki.apache.org/confluence/display/solr/Index+Replication#IndexReplication-ConfiguringtheReplicationHandler
-->
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="*master*">
<str name="replicateAfter">commit</str>
<str name="replicateAfter">startup</str>
</lst>
<lst name="*slave*">
<str name="enable">${enable.slave:false}</str>
<str name="masterUrl">http://${MASTER_CORE_URL}</str>
<str name="pollInterval">00:00:60</str>
</lst>
</requestHandler>

We have used the Replicate Now button on the Slave's Solr Admin UI.

Most of the time replication is working for the many cores we host.  But
enough are failing and impacting our clients that it has moved up in
priority to take a proactive approach.

Currently we restart Solr or rebuild the core to resolve the replication
issue.  However, I am thinking of trying a core reload, to see if it will
reset the replication state information.  That way I can create a script to
detect the replication error and attempt to resolve it without a Solr
restart.

Any further feedback is welcome.

Thanks,
Matt

On Mon, Jan 3, 2022 at 3:19 PM Shawn Heisey <[email protected]> wrote:

> On 1/3/2022 2:21 PM, mtn search wrote:
> > From the Solr Admin UI
> (server:8080/solr/old.html#/collection1/replication)
> > I can select the Replicate Now button. This will successfully replicate
> > once, but not restart the periodic replication.
> >
> > Any tips?
> >
> > I think if there was an api to modify the next replication date, that
> would
> > do the trick.
>
> Are you using the scripts to start Solr with the included jetty, or have
> you moved the webapp into a different container?  I only ask because
> port 8080 is the most commonly used port for standalone container
> installations, so I usually expect Solr on a different port number.
>
> Can you show us the replication configs on the master and the slave?
> Was the "Replicate Now" button found on the admin UI for the slave or
> for the master?  What is the exact version of Solr 6 that you are using?
>
> (In case you're wondering, I am aware that the terms in the previous
> paragraph are sensitive.  I am only using them because those are the
> terms used in the replication configuration for your Solr version.  If I
> had a reasonable way to avoid using those terms for this discussion, I
> would.)
>
> It's been many years since I last used replication in my own setups, but
> the config is fairly straightforward, and hasn't changed a whole lot
> since Solr 1.4.1, which was the last time I used it.
>
> Thanks,
> Shawn
>

Reply via email to