From b60d0711b7fe0846db308a8b9f92e54b4cca325c Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Thu, 19 Nov 2020 12:38:24 -0500 Subject: [PATCH] [DOCS] ILM: Add alloc ex with multiple node attributes (#65266) (#65271) --- .../ilm/actions/ilm-allocate.asciidoc | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/reference/ilm/actions/ilm-allocate.asciidoc b/docs/reference/ilm/actions/ilm-allocate.asciidoc index 13d1745d3d5..aacecdc5aaa 100644 --- a/docs/reference/ilm/actions/ilm-allocate.asciidoc +++ b/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