Hi Erick, I have configured the SolrCloud collection-wise only and there is no other way. The way you have defined 3 zkHosts (comma separated values for zkHost property), I tried that one before as it was more intuitive. But it did not work for me. I had to use 3 different replica elements each for one of the 3 SolrCloud clusters. source and target properties mention the same collection name in my case. Instead of hardcoding it, I am using the collection.configName variable which gets replaced by the collection name to which this solrconfig.xml belongs to.
If follow your configuration (which does not work in my case and I have tested it), my question was how to NOT send CDCR updates to targetZkHost2 and targetZkHost3 but not targetZkHost1? On Tue, Aug 13, 2019 at 3:23 PM Erick Erickson <erickerick...@gmail.com> wrote: > You configure CDCR by _collection_, so this question really makes no > sense. > You’d never mention collection.configName. So what I suspect is that you’re > misreading the docs. > > <lst name="replica"> > <str name="zkHost">${targetZkHost1},${targetZkHost2},${targetZkHost3}</str> > <str name="source">sourceCollection_on_local_cluster</str> > <str name="target">targetCollection_on_targetZkHost1 2 and 3</str> > </lst> > > “Turning off CDCR” selective for ZooKeeper instances really makes no sense > as the > point of ZK ensembles is to keep running even if one goes away. > > So can you rephrase the question? Or state the problem you’re trying to > solve another way? > > Best, > Erick > > > On Aug 13, 2019, at 1:57 PM, Arnold Bronley <arnoldbron...@gmail.com> > wrote: > > > > Hi, > > > > Is there a way to turn off the CDCR for only selected target clusters. > > > > Say, I have a configuration like following. I have 3 target clusters > > targetZkHost1, targetZkHost2 and targetZkHost3. Is it possible to turn > off > > the CDCR for targetZkHost2 and targetZkHost3 but keep it on for > > targetZkHost1? > > > > E.g. > > > > <requestHandler name="/cdcr" class="solr.CdcrRequestHandler"> > > <lst name="replica"> > > <str name="zkHost">${targetZkHost1}</str> > > <str name="source">${collection.configName}</str> > > <str name="target">${collection.configName}</str> > > </lst> > > > > <lst name="replica"> > > <str name="zkHost">${targetZkHost2}</str> > > <str name="source">${collection.configName}</str> > > <str name="target">${collection.configName}</str> > > </lst> > > > > <lst name="replica"> > > <str name="zkHost">${targetZkHost3}</str> > > <str name="source">${collection.configName}</str> > > <str name="target">${collection.configName}</str> > > </lst> > > > > <lst name="replicator"> > > <str name="threadPoolSize">8</str> > > <str name="schedule">1000</str> > > <str name="batchSize">128</str> > > </lst> > > > > <lst name="updateLogSynchronizer"> > > <str name="schedule">1000</str> > > </lst> > > > > <lst name="buffer"> > > <str name="defaultState">disabled</str> > > </lst> > > </requestHandler> > >