You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2019/06/07 02:39:16 UTC

[lucene-solr] 02/02: SOLR-13329: ref guide

This is an automated email from the ASF dual-hosted git repository.

noble pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit b92ae784c7f0aa0208c7463a44a77622d719122e
Author: noble <no...@apache.org>
AuthorDate: Tue Jun 4 16:11:32 2019 +1000

    SOLR-13329: ref guide
---
 .../src/solrcloud-autoscaling-policy-preferences.adoc            | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

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 57a14de..e5a0b09 100644
--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
@@ -109,12 +109,13 @@ Global rules have three parts:
 * <<Core Count Constraint>> (`"cores": "..."`)
 * <<Rule Strictness>> (optional)
 
-Per-collection rules have four parts:
+Per-collection rules have five parts:
 
 * <<Node Selector>>
 * <<Replica Selector and Rule Evaluation Context>>
 * <<Replica Count Constraint>> (`"replica": "..."`)
 * <<Rule Strictness>> (optional)
+* `put` (optional) specifies how to place these replicas on the selected nodes. All the selected nodes are considered as one bucket by default. `"put" : "on-each"` treats each selected node as a bucket
 
 ==== Node Selector
 
@@ -137,14 +138,12 @@ The property names can be one of  `node` , `host` , `sysprop.*` , `freedisk` , `
 
 when using the `nodeset` attribute, an optional attribute `put` can be used to specify how to distribute the replicas in that node set.
 
-e.g:
-
+example:  _put one replica on each node with a system property zone=east_
 [source,json]
-//put one replica on each node with a system property zone=east
 { "replica":1, "put" :"on-each", "nodeset":{"sysprop.zone":"east"}}
 
+example: _put a total of  2 replicas on the set of nodes with property zone=east_
 [source,json]
-//put a total of  2 replicas on the set of nodes with property zone=east
 { "replica":2, "put" :"on-each" "nodeset":{"sysprop.zone":"east"}}