Преглед изворни кода

[DOCS] Add example of setting disk threshold decider settings

Fixes #10686
Lee Hinman пре 10 година
родитељ
комит
a4f98e7400
1 измењених фајлова са 15 додато и 0 уклоњено
  1. 15 0
      docs/reference/index-modules/allocation.asciidoc

+ 15 - 0
docs/reference/index-modules/allocation.asciidoc

@@ -143,6 +143,21 @@ settings API. By default, Elasticsearch will retrieve information
 about the disk usage of the nodes every 30 seconds. This can also be
 changed by setting the `cluster.info.update.interval` setting.
 
+An example of updating the low watermark to no more than 80% of the disk size, a
+high watermark of at least 50 gigabytes free, and updating the information about
+the cluster every minute:
+
+[source,js]
+--------------------------------------------------
+curl -XPUT localhost:9200/_cluster/settings -d '{
+    "transient" : {
+        "cluster.routing.allocation.disk.watermark.low" : "80%",
+        "cluster.routing.allocation.disk.watermark.high" : "50gb",
+        "cluster.info.update.interval" : "1m"
+    }
+}'
+--------------------------------------------------
+
 By default, Elasticsearch will take into account shards that are currently being
 relocated to the target node when computing a node's disk usage. This can be
 changed by setting the `cluster.routing.allocation.disk.include_relocations`