Skip to content

Commit c692325

Browse files
committed
Reference the new setting
from the migrate to data tiers docs
1 parent ef935c4 commit c692325

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/reference/data-management/migrate-index-allocation-filters.asciidoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ To switch to using node roles:
5656
settings>> from your {ilm} policy.
5757
. <<stop-setting-custom-hot-attribute, Stop setting the custom hot attribute>>
5858
on new indices.
59+
. <<enforce-default-tier-preference, Enforce a default tier preference>>
60+
on new indices.
5961
. Update existing indices to <<set-tier-preference, set a tier preference>>.
6062

6163

@@ -136,6 +138,26 @@ DELETE _template/.cloud-hot-warm-allocation-0
136138

137139
If you're using a custom index template, update it to remove the <<shard-allocation-filtering, attribute-based allocation filters>> you used to assign new indices to the hot tier.
138140

141+
[discrete]
142+
[[enforce-default-tier-preference]]
143+
==== Enforce a default tier preference on new indices
144+
145+
Setting <<enforcing-a-default-tier-preference,`cluster.routing.allocation.enforce_default_tier_preference`>> to `true`
146+
ensures that newly created indices will have a <<tier-preference-allocation-filter,_tier_preference>>, overriding the
147+
<<indices-create-index,create index>> API or an associated <<index-templates,index template>>, if either of those
148+
specifies `null` for the setting.
149+
150+
[source,console]
151+
----
152+
PUT _cluster/_settings
153+
{
154+
"persistent": {
155+
"cluster.routing.allocation.enforce_default_tier_preference": true
156+
}
157+
}
158+
----
159+
// TEST[continued]
160+
139161
[discrete]
140162
[[set-tier-preference]]
141163
==== Set a tier preference for existing indices

docs/reference/ilm/apis/migrate-to-data-tiers.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ in the <<migrate-index-allocation-filters, migration guide>>:
2020

2121
. <<stop-setting-custom-hot-attribute, Stop setting the custom hot attribute on new indices>>
2222
. <<remove-custom-allocation-settings, Remove custom allocation settings from existing {ilm-init} policies>>
23+
. <<enforce-default-tier-preference, Enforce a default tier preference on new indices>>
2324
. <<set-tier-preference, Replace custom allocation settings from existing indices>> with the corresponding <<tier-preference-allocation-filter,tier preference>>
2425

2526
[[ilm-migrate-to-data-tiers-request]]

0 commit comments

Comments
 (0)