mirror of https://github.com/apache/lucene.git
SOLR-12495,SOLR-11986 ref guide
This commit is contained in:
parent
11b22b441a
commit
1e50030940
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue