浏览代码

[DOCS] ILM: Add alloc ex with multiple node attributes (#65266)

James Rodewig 4 年之前
父节点
当前提交
a8ddf76526
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      docs/reference/ilm/actions/ilm-allocate.asciidoc

+ 28 - 0
docs/reference/ilm/actions/ilm-allocate.asciidoc

@@ -98,6 +98,34 @@ PUT _ilm/policy/my_policy
 }
 --------------------------------------------------
 
+[[ilm-allocate-assign-index-multi-attribute-ex]]
+===== Assign index to nodes based on multiple attributes
+
+The allocate action can also assign indices to nodes based on multiple node
+attributes. The following action assigns indices based on the `box_type` and
+`storage` node attributes.
+
+[source,console]
+----
+PUT _ilm/policy/my_policy
+{
+  "policy": {
+    "phases": {
+      "cold": {
+        "actions": {
+          "allocate" : {
+            "require" : {
+              "box_type": "cold",
+              "storage": "high"
+            }
+          }
+        }
+      }
+    }
+  }
+}
+----
+
 [[ilm-allocate-assign-index-node-ex]]
 ===== Assign index to a specific node and update replica settings