You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Varun Thacker (JIRA)" <ji...@apache.org> on 2018/10/23 21:36:00 UTC
[jira] [Comment Edited] (SOLR-12845) Add a default cluster policy
[ https://issues.apache.org/jira/browse/SOLR-12845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661325#comment-16661325 ]
Varun Thacker edited comment on SOLR-12845 at 10/23/18 9:35 PM:
----------------------------------------------------------------
I can think of two more defaults ( both should be strict:false ) that we could add to the autoscaling.json file :
* Don't have more than two replicas on the same physical host :
{code:java}
{"replica": "<2", "host": “#ANY”}{code}
* Define a well known system property called "rack" in Solr ( SOLR-12907 ) -
{code:java}
{"replica": "#EQUAL", "shard": "#EACH", "rack": “#EACH”}{code}
was (Author: varunthacker):
I can think of two more defaults ( both should be strict:false ) that we could add to the autoscaling.json file :
* Don't have more than two replicas on the same physical host : {{{"replica": "<2", "host": “#ANY”}}}
* Define a well known system property called "rack" in Solr ( SOLR-12907 ) - {{{"replica": "#EQUAL", "shard": "#EACH", "rack": “#EACH”}}}
> Add a default cluster policy
> ----------------------------
>
> Key: SOLR-12845
> URL: https://issues.apache.org/jira/browse/SOLR-12845
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Shalin Shekhar Mangar
> Priority: Major
> Attachments: SOLR-12845.patch
>
>
> [~varunthacker] commented on SOLR-12739:
> bq. We should also ship with some default policies - "Don't allow more than one replica of a shard on the same JVM" , "Distribute cores across the cluster evenly" , "Distribute replicas per collection across the nodes"
> This issue is about adding these defaults. I propose the following as default cluster policy:
> {code}
> # Each shard cannot have more than one replica on the same node if possible
> {"replica": "<2", "shard": "#EACH", "node": "#ANY", "strict":false}
> # Each collections replicas should be equally distributed amongst nodes
> {"replica": "#EQUAL", "node": "#ANY", "strict":false}
> # All cores should be equally distributed amongst nodes
> {"cores": "#EQUAL", "node": "#ANY", "strict":false}
> {code}
--
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