How do I run Apache Solr on two servers such that I will still be able to index and query even if one of the servers is taken offline? In other words, I am looking for high availability with automatic failover.
I have looked at SolrCloud. However, it uses Apache ZooKeeper which requires at least 3 servers to be able to tolerate the failure of 1 server. Are there alternative methods? I only have two servers that are able to run Solr. Supposing I have a third low-spec server, is it a good idea to run Solr (SolrCloud) on only two of the three servers, while running ZooKeeper on all three servers? However, this looks like a waste because the third server would essentially be doing nothing. Is there a better method with standalone Solr?