[
https://issues.apache.org/jira/browse/SOLR-13226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761899#comment-16761899
]
Cassandra Targett commented on SOLR-13226:
------------------------------------------
I don't know...in general, I wonder why anyone would expect a rule to be
followed when they set it as optional.
Putting all replicas on a single node feels like a different problem. Setting
the rules as strict may mitigate the problem, but why is Solr doing that?
> Add note for Node Added Trigger documentation in Autoscaling
> ------------------------------------------------------------
>
> Key: SOLR-13226
> URL: https://issues.apache.org/jira/browse/SOLR-13226
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: AutoScaling
> Reporter: Amrit Sarkar
> Priority: Major
> Attachments: SOLR-13226.patch, Screen Shot 2019-02-05 at 3.55.31
> AM.png, Screen Shot 2019-02-05 at 4.02.00 AM.png
>
>
> Node Added Trigger doesn't abide by SOFT rules [strict: false] and results in
> abnormal cluster operational behavior.
> Let's say; we wish to do the following:
> 1. Not more than 10 cores reside on Single node.
> 2. Wish to distribute the cores, replicas equally to each Node.
> If we go by the following policy:
> not more than one replica for unique shard on a node. not a strict rule.
> {code}
> {"replica":"<2", "shard": "#EACH", "node": "#ANY", "strict": false},
> {code}
> distribute the replicas equally across the nodes, not a strict rule.
> {code}
> {"replica": "#EQUAL", "node": "#ANY", "strict": false},
> {code}
> not more than 10 cores allowed on a single node, strict rule.
> {code}
> {"cores": "<10", "node": "#ANY"}
> {code}
> cluster state ends up like:
> Screenshot -1
> Only the strict rule is followed and multiple replicas are added to single
> Solr node, as rules are not strict – _{"replica":"<2", "shard": "#EACH",
> "node": "#ANY", "strict": false}_
> While the following with all strict rule generate normal operational
> behavior, add a replica to each shard of collection 'wiki' :
> {code}
> [
> {"replica":"<2", "shard": "#EACH", "node": "#ANY"},
> {"replica": "#EQUAL", "node": "#ANY"},
> {"cores": "<10", "node": "#ANY"}
> ]
> {code}
> Screenshot -2
> This behavior should be documented.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]