You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org> on 2018/06/05 17:50:00 UTC

[jira] [Comment Edited] (SOLR-11982) Add support for indicating preferred replica types for queries

    [ https://issues.apache.org/jira/browse/SOLR-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500426#comment-16500426 ] 

Tomás Fernández Löbbe edited comment on SOLR-11982 at 6/5/18 5:49 PM:
----------------------------------------------------------------------

I think this is expected, at least with the current state of things. A TLOG replica that is leader doesn't stop being a TLOG replica (the replica type is recorded on the cluster state and doesn't change). IMO, what we want is a rule that one can use to prefer leader (or not leader, which would be more common). Something like {{shards.preference=isLeader:false replicaType:TLOG}}


was (Author: tomasflobbe):
I think this is expected, at least with the current state of things. A TLOG replica that is leader doesn't stop being a TLOG replica (the replica type is recorded on the cluster state and doesn't change). IMO, what we want is a rule that one can use to prefer leader (or not leader, which would be more common). Something like {{shards.prefernce=isLeader:false replicaType:TLOG}}

> Add support for indicating preferred replica types for queries
> --------------------------------------------------------------
>
>                 Key: SOLR-11982
>                 URL: https://issues.apache.org/jira/browse/SOLR-11982
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 7.4, master (8.0)
>            Reporter: Ere Maijala
>            Assignee: Tomás Fernández Löbbe
>            Priority: Minor
>              Labels: patch-available, patch-with-test
>             Fix For: 7.4, master (8.0)
>
>         Attachments: SOLR-11982-preferReplicaTypes.patch, SOLR-11982-preferReplicaTypes.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch
>
>
> It would be nice to have the possibility to easily sort the shards in the preferred order e.g. by replica type. The attached patch adds support for {{shards.sort}} parameter that allows one to sort e.g. PULL and TLOG replicas first with \{{shards.sort=replicaType:PULL|TLOG }}(which would mean that NRT replicas wouldn't be hit with queries unless they're the only ones available) and/or to sort by replica location (like preferLocalShards=true but more versatile).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org