I've filed the Jira item to implement this here: SOLR-15472 <https://issues.apache.org/jira/browse/SOLR-15472> shards.preference should support leader=false
On Thu, Jun 10, 2021 at 9:41 AM Stephen Lewis Bianamara < stephen.bianam...@gmail.com> wrote: > Hi Community, > > I checked the source and see that this doesn't look to be supported to > read only from followers. I guess this is possible by pulling the > state.json data from zookeeper, identifying the leaders, and then passing > an explicit whitelist not including the leaders. Can someone confirm that > this is the only way to accomplish this goal? > > Thanks, > Stephen > > On Tue, Jun 8, 2021 at 1:55 PM Stephen Lewis Bianamara < > stephen.bianam...@gmail.com> wrote: > >> Hi Folks, >> >> Is it possible to configure a Solr cloud to serve reads only from the >> followers? I see this page >> <https://solr.apache.org/guide/8_8/distributed-requests.html> explains >> how to prefer by local, replica type, or sysprops. But is it possible to >> specify that something should be served by a non-leader whenever possible >> (or even require it to return at all)? E.g., something like >> >> shards.preference=leader:false >> >> >> Thanks, >> Stephen >> >