On 8/1/2018 10:05 AM, Chuong Thao wrote:
> I am looking to deploy Solr 7.3 in containers with replication handler. Is 
> there a way to recover the docs on master from the slave if the master is 
> suddenly killed?

Replication in a master-slave setup only goes from master to slave.  It
cannot go from slave to master.

"Recovery" is a SolrCloud concept.  SolrCloud does use the replication
handler to accomplish recovery, but in a SolrCloud setup, the
replication handler has no explicit configuration.  When a recovery is
required, SolrCloud configures the replication handler on the fly and
initiates a one-time replication.  Historically, SolrCloud did not use
the replication handler for normal index synchronization.  In 7.x
versions, new replica types exist that DO use the replication handler
... but it's configured on the fly in the same way that index recovery is.

To do what you want to do, I see two options:

1) Copy index directories from the slave to the master before you start
the master.
2) Reconfigure your systems so that the slave becomes the master and the
master becomes a slave, then restart the processes.

Either way, it's a manual process.  This is not likely to change.  If
you want to have more automation, switch to SolrCloud.  Because
SolrCloud sets up a true cluster, there are no masters and no slaves.  I
would recommend SolrCloud for most new installations, especially one
where servers might be added or removed frequently.

Thanks,
Shawn

Reply via email to