lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: When does Solr write in Zookeeper ?
Date Mon, 18 Nov 2019 18:28:36 GMT
On 11/18/2019 8:39 AM, Dominique Bejean wrote:
> How Solr nodes know that something was changed in Zookeeper by an other
> node ? Is there any notification from ZK or do Solr nodes read
> systematically in ZK (without local caching) ?

This is built-in functionality of ZooKeeper.  The client allows setting 
what's called watches, which trigger when the watched node changes.

https://zookeeper.apache.org/doc/r3.5.6/zookeeperProgrammers.html#sc_zkDataMode_watches

This functionality is used extensively in SolrCloud.

Thanks,
Shawn

Mime
View raw message