[
https://issues.apache.org/jira/browse/SOLR-16816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733172#comment-17733172
]
ASF subversion and git services commented on SOLR-16816:
--------------------------------------------------------
Commit 8c070ef80859c1c3690aa4570caa770bdf282392 in solr's branch
refs/heads/branch_9x from Houston Putman
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=8c070ef8085 ]
SOLR-16806: Create a BalanceReplicas API (#1650)
- Introduce BalanceReplicasAPI
- Add computeReplicaBalancing() in Assign, and computeBalancing() in
PlacementPlugin.
The default implementation returns an empty balancePlan (moving no replicas).
- Refactor all provided PlacementPlugins, to implement
OrderedNodePlacementPlugin,
and share a common way of computing placements and balancing.
Also fixes SOLR-16816, updating metrics when doing multi-shard/collection
placements.
(cherry picked from commit de5d1aaec7d5269ebd60ba8e73f06dc31a98887d)
> AffinityPlacementPlugin should utilize the size of new replicas when making
> placements
> --------------------------------------------------------------------------------------
>
> Key: SOLR-16816
> URL: https://issues.apache.org/jira/browse/SOLR-16816
> Project: Solr
> Issue Type: Sub-task
> Components: AutoScaling
> Affects Versions: 9.0
> Reporter: Houston Putman
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The AffinityPlacementPlugin has logic to make sure that nodes are not loaded
> up with more indexes than they can handle. It does this by filtering out
> nodes in the selection process that have less free disk space than the
> minimalFreeDiskGB configured.
> However it doesn't take into account the size of the replicas it will create
> when doing this. So if the minimalFreeDiskGB is 30 GB, and the free disk
> space on a node is 50G, and a new replica's shard's leader uses 40GB for its
> index, then the plugin will happily choose this node, even though its likely
> that the node's free disk space will be 10GB after the replica is created,
> which is much smaller than the configured minimalFreeDiskGB.
> This information should also be used when sorting on prioritizedFreeDiskGB.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]