[
https://issues.apache.org/jira/browse/SOLR-14935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218359#comment-17218359
]
Mike Drob commented on SOLR-14935:
----------------------------------
Is there an additional gain to be had by checking all of the collections in the
alias for local replicas instead of stopping at the first one?
> Solr can forward request ( remoteQuery ) even if there are local cores present
> ------------------------------------------------------------------------------
>
> Key: SOLR-14935
> URL: https://issues.apache.org/jira/browse/SOLR-14935
> Project: Solr
> Issue Type: Task
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Varun Thacker
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Noticed an odd interaction where search queries are being proxied ( treated
> as remoteQuery ) even when there are cores from that alias on the querying
> node
> * Running Solr 7.7.3 and querying via CloudSolrClient
> * We use aliases and query with the alias name in CloudSolrClient
> * CloudSolrClient creates a list of all replicas from the alias ( after
> resolving it ) and then shuffles the list picking one Solr node to query
> against
> * When Solr receives the request, it only looks at the first collection from
> the alias and tries to find a local core
> * Anytime that isn't the case, it makes a remoteQuery , proxying the
> request to machineX which has a local core of the first collection from the
> alias.
>
> I think we can make Solr check against all collections in the alias to see if
> there is a local node present without performance implications.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]