Shalin Shekhar Mangar created SOLR-11985:
--------------------------------------------
Summary: Allow percentage in replica attribute in policy
Key: SOLR-11985
URL: https://issues.apache.org/jira/browse/SOLR-11985
Project: Solr
Issue Type: Sub-task
Security Level: Public (Default Security Level. Issues are Public)
Components: AutoScaling, SolrCloud
Reporter: Shalin Shekhar Mangar
Fix For: master (8.0), 7.3
Today we can only specify an absolute number in the 'replica' attribute in the
policy rules. It'd be useful to write a percentage value to make certain
use-cases easier. For example:
{code}
// Keep a third of the the replicas of each shard in east region
{"replica" : "<34%", "shard" : "#EACH", "sysprop:region": "east"}
// Keep two thirds of the the replicas of each shard in west region
{"replica" : "<67%", "shard" : "#EACH", "sysprop:region": "west"}
{code}
Today the above must be represented by different rules for each collection if
they have different replication factors. Also if the replication factor changes
later, the absolute value has to be changed in tandem. So expressing a
percentage removes both of these restrictions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]