Shawn Heisey kirjoitti 25.10.2019 klo 14.54:
> With newer Solr versions, you can ask SolrCloud to prefer PULL replicas
> for querying, so queries will be targeted to those replicas, unless they
> all go down, in which case it will go to non-preferred replica types.  I
> do not know how to do this, I only know that it is possible.
It's controlled by the shards.preference parameter. Docs:

https://lucene.apache.org/solr/guide/8_2/distributed-requests.html#shards-preference-parameter

It also allows one to prefer certain replica locations. This could be
useful e.g. if you want to avoid the indexing server handling queries.
It can also be used to prefer local replicas to minimize network access.

--Ere

-- 
Ere Maijala
Kansalliskirjasto / The National Library of Finland

Reply via email to