<div dir="ltr">Thanks a lot.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 15, 2019 at 11:33 AM Shawn Heisey via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/14/2019 2:11 AM, luckydog xf via dovecot wrote:<br>
>    And based on <a href="https://dovecot.org/pipermail/dovecot/2019-April/115575.html" rel="noreferrer" target="_blank">https://dovecot.org/pipermail/dovecot/2019-April/115575.html</a><br>
> I'm going to use an VIP to host 2 mail servers. Currently, it works in <br>
> fail over and fail back test except solr index, so how to resolve this?<br>
<br>
Solr has high availability options.  Probably the easiest is SolrCloud, <br>
because the legacy master-slave replication option basically has the <br>
master as a single point of failure.  Switching a slave to master is a <br>
very manual job.  SolrCloud is a true cluster -- no masters and no slaves.<br>
<br>
Normally I would suggest a load balancer in front of Solr, but with <br>
SolrCloud and this usage, you could have a VIP switch between two hosts. <br>
  You will need at least three servers for a redundant SolrCloud <br>
install, because ZooKeeper absolutely requires three servers for <br>
redundancy.  SolrCloud is Solr+ZooKeeper.  Only two of the servers would <br>
need to run Solr, though.  The third server would only need to run <br>
ZooKeeper, and normally the system requirements for that are very low.<br>
<br>
> Is it possible to put dovecot index on shared storage like NFS?<br>
<br>
Solr does not do well on network file systems.  They usually don't offer <br>
the file locking capability that Lucene wants.  Solr is written using <br>
the Lucene API.<br>
<br>
And you can't have two running Solr servers using the same index <br>
directory even if you disable file locking so that NFS works.  Each <br>
server needs its own copy of the index.<br>
<br>
> How to rebuild if I don't put index data on shared storage in case of <br>
> fail over?<br>
<br>
Building and rebuilding is accomplished by dovecot.  Here's a wiki page <br>
for rebuilding Solr indexes.  Admittedly it falls into the "not all that <br>
helpful" category:<br>
<br>
<a href="https://wiki.apache.org/solr/HowToReindex" rel="noreferrer" target="_blank">https://wiki.apache.org/solr/HowToReindex</a><br>
<br>
Thanks,<br>
Shawn<br>
</blockquote></div>