[ https://issues.apache.org/jira/browse/SOLR-12845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16644537#comment-16644537 ]
Shalin Shekhar Mangar commented on SOLR-12845: ---------------------------------------------- bq. Maybe this policy shoud not be strict=false but the other two policies could be ? Actually, this has to be non-strict because it effectively sets maxShardsPerNode=1 for everyone. I've opened SOLR-12847 to cut over maxShardsPerNode to a policy rule but until then this has to be strict=false. My original proposal (in the description) had strict=false only for the first rule but I have changed the defaults to use strict=false for all rules otherwise it prevents Solr from performing operations that were possible earlier due to violations. As I expected, there are tons of test failures with the new defaults due to the assumptions on how replicas will be placed. I'm working through those test failures. > 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 > > [~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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org