You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/03/10 09:59:23 UTC
[lucene] 10/50: SOLR-10798: and SOLR-11205 documentation
This is an automated email from the ASF dual-hosted git repository.
dweiss pushed a commit to branch branch_7_1
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit 4201cbc9768763c54d45c60f06a57bd941126027
Author: Noble Paul <no...@apache.org>
AuthorDate: Wed Oct 18 14:43:23 2017 +1030
SOLR-10798: and SOLR-11205 documentation
---
.../src/solrcloud-autoscaling-policy-preferences.adoc | 13 +++++++++++++
1 file changed, 13 insertions(+)
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 8035c17..b8e52ac 100644
--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-policy-preferences.adoc
@@ -100,6 +100,9 @@ The name of the collection to which the policy rule should apply. If omitted, th
`shard`::
The name of the shard to which the policy rule should apply. If omitted, the rule is applied for all shards in the collection. It supports a special value `#EACH` which means that the rule is applied for each shard in the collection.
+`type`::
+The type of the replica to which the policy rule should apply. If omitted, the rule is applied for all replica types of this collection/shard. The allowed values are `NRT`, `TLOG` and `PULL`
+
`replica`::
The number of replicas that must exist to satisfy the rule. This must be a positive integer. This is a required attribute.
@@ -135,6 +138,9 @@ The least significant to most significant segments of IP address. For example, f
`sysprop.<system_property_name>`::
Any arbitrary system property set on the node on startup.
+`metrics:<full-path-to-the metric>` ::
+Any arbitrary metric. eg: `metrics:solr.node:CONTAINER.fs.totalSpace`. Refer to the `key` parameter in <<metrics-reporting.adoc, Metrics API>>
+
=== Policy Operators
Each attribute in the policy may specify one of the following operators along with the value.
@@ -188,6 +194,13 @@ Place all replicas in nodes with freedisk more than 500GB when possible. Here we
[source,json]
{"replica": 0, "freedisk": "<500", "strict" : false}
+==== Try to Place all Replicas of type TLOG in SSD type file system
+
+[source,json]
+{ "replica": 0, "sysprop.file_system" : "!ssd", "type" : "TLOG" }
+
+Please note that to use the `sysprop.fs` attribute all your ssd nodes must be started with a system property `-Dfile_system=ssd`.
+
[[collection-specific-policy]]
== Defining Collection-Specific Policies