You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2018/07/17 21:12:52 UTC
[17/48] lucene-solr:jira/lucene-2562: SOLR-12495, SOLR-11986 ref guide
SOLR-12495,SOLR-11986 ref guide
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d08ec2cb
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d08ec2cb
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d08ec2cb
Branch: refs/heads/jira/lucene-2562
Commit: d08ec2cb3dfa1a67a8e5a02994e40bdaab4283a9
Parents: 738dadc
Author: Noble Paul <no...@apache.org>
Authored: Mon Jul 16 17:56:32 2018 +1000
Committer: Steve Rowe <sa...@apache.org>
Committed: Tue Jul 17 12:22:30 2018 -0400
----------------------------------------------------------------------
.../src/solrcloud-autoscaling-policy-preferences.adoc | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d08ec2cb/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
index bdc10d0..c7f46c9 100644
--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
@@ -108,6 +108,7 @@ This is a required attribute. The number of replicas that must exist to satisfy
* a number with a decimal value . e.g: "`1.66`" . This means both 1 and 2 are acceptable values but the system would prefer `2`
* a number range. Such as `"3-5"` . This means `3,4,5` are acceptable values
* a percentage value . e.g: `33%` . This is computed to a decimal value at runtime
+* `#EQUAL` : means divide it equally among all the nodes qualifying a certain property
`strict`::
An optional boolean value. The default is `true`. If true, the rule must be satisfied. If false, Solr tries to satisfy the rule on a best effort basis but if no node can satisfy the rule then any node may be chosen.
@@ -165,6 +166,7 @@ This supports values calculated at the time of execution.
* `%` : A certain percentage of the value. This is supported by the following attributes
** `replica`
+** `freedisk`
=== Examples of Policy Rules
@@ -233,6 +235,11 @@ Place all replicas in nodes with freedisk more than 500GB. Here again, we have t
[source,json]
{"replica": 0, "freedisk": "<500"}
+Do not use more than `50%` of diskspace in any node
+[source,json]
+{"replica": 0, "freedisk": "<50%"}
+
+
==== Try to Place Replicas Based on Free Disk
Place all replicas in nodes with freedisk more than 500GB when possible. Here we use the strict keyword to signal that this rule is to be honored on a best effort basis.