On 9/29/2015 5:59 PM, pramodEbay wrote:
> Is there an example which I could use - to upload solr.xml in zookeeper and
> change zkhost entries on the fly and have solr instances be updated via
> zookeeper. This will prevent us from restarting each solr node everytime, a
> new zookeeper host is added or deleted.
> 
> We are on Solr 4.8.

Support in zookeeper for dynamically changing the cluster membership has
been added to the 3.5 version, which is currently only available as an
alpha release.

https://issues.apache.org/jira/browse/ZOOKEEPER-107

This feature has been under development for a REALLY long time.  The
comments are a discussion that is very technical in nature and difficult
to follow, it looks like it took a very long time to come up with a
usable design.

I don't know anything about how they have implemented the dynamic
cluster support, so I do not know whether Solr requires code changes to
use it.  A quick scan of the first few comments suggests that they are
trying to make this server-side, with all clients updating
automatically, so Solr might not need any code changes.  Let's hope that
this is the case.

Before we even think about upgrading the zookeeper functionality in
Solr, we must wait for the official 3.5 release from the zookeeper
project.  Alpha (or Beta) software will not be included in Solr unless
it is the only way to fix a very serious bug.  This is a new feature,
not a bug.

Thanks,
Shawn

Reply via email to