Browse Source

[DOCS] Add example of setting disk threshold decider settings

Fixes #10686
Lee Hinman 10 years ago
parent
commit
a4f98e7400
1 changed files with 15 additions and 0 deletions
  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
 about the disk usage of the nodes every 30 seconds. This can also be
 changed by setting the `cluster.info.update.interval` setting.
 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
 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
 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`
 changed by setting the `cluster.routing.allocation.disk.include_relocations`