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

This commit is contained in:
James Rodewig 2020-11-19 12:38:24 -05:00 committed by GitHub
parent a6a9950868
commit b60d0711b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -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