You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I highly value the content on this [Data Tiers](https://www.elastic.co/guide/en/elasticsearch/reference/current/data-tiers.html) page. Thanks for writing it! In my experience, some users may become slightly confused by its golden nuggets due to its brevity. This PR attempts to flush out common questions while remaining concise.
The main changes are in the first and second-to-last sections; however, I do attempt some heading restructuring to make the TOC idea-groupings more clear for easier scan-throughs.
The specific clarifications I'd like to push in order of appearance:
- There's content tier (for "data category" > "content" as we've dubbed it on the higher page) and the data temperature tiers (for time series). That the temperature tiers group together is technically not stated so users end up asking about when they'd go hot>warm vs content>warm, etc. I suspect this confusion is only because users come straight to this page instead of starting at the hierarchy-parent page so have linked up.
- (Main) Frozen being accessed/searched "rarely" should imply, well rarely. I wrote 1% in the PR `[TIP]` guideline section as a discussion starting point. Frequently we see users not understanding either that they actually have been or that they shouldn't have ≥25% of all searches hitting frozen tier. This comes up because of architecture bugs (e.g. frozen indices with future timestamps) but also just happenstance (e.g. 01605242 where of searches they hit majority hot, ~5% cold, but then again hit 75% frozen).
- There's a slew of "how do I check that?", "how do I change that (at creation/later)?", "what if I set it null?" questions we get about `_tier_preference` so just extended the existing section already about it.
---------
Co-authored-by: shainaraskas <[email protected]>
Co-authored-by: Lee Hinman <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/datatiers.asciidoc
+93-30Lines changed: 93 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,43 +2,65 @@
2
2
[[data-tiers]]
3
3
== Data tiers
4
4
5
-
A _data tier_ is a collection of nodes with the same data role that
6
-
typically share the same hardware profile:
5
+
A _data tier_ is a collection of <<modules-node,nodes>> within a cluster that share the same
6
+
<<node-roles,data node role>>, and a hardware profile that's appropriately sized for the role. Elastic recommends that nodes in the same tier share the same
7
+
hardware profile to avoid <<hotspotting,hot spotting>>.
7
8
8
-
* <<content-tier, Content tier>> nodes handle the indexing and query load for content such as a product catalog.
9
-
* <<hot-tier, Hot tier>> nodes handle the indexing load for time series data such as logs or metrics
10
-
and hold your most recent, most-frequently-accessed data.
11
-
* <<warm-tier, Warm tier>> nodes hold time series data that is accessed less-frequently
9
+
The data tiers that you use, and the way that you use them, depends on the data's <<data-management,category>>.
10
+
11
+
The following data tiers are can be used with each data category:
12
+
13
+
Content data:
14
+
15
+
* <<content-tier,Content tier>> nodes handle the indexing and query load for non-timeseries
16
+
indices, such as a product catalog.
17
+
18
+
Time series data:
19
+
20
+
* <<hot-tier,Hot tier>> nodes handle the indexing load for time series data,
21
+
such as logs or metrics. They hold your most recent, most-frequently-accessed data.
22
+
* <<warm-tier,Warm tier>> nodes hold time series data that is accessed less-frequently
12
23
and rarely needs to be updated.
13
24
* <<cold-tier,Cold tier>> nodes hold time series data that is accessed
14
25
infrequently and not normally updated. To save space, you can keep
15
26
<<fully-mounted,fully mounted indices>> of
16
27
<<ilm-searchable-snapshot,{search-snaps}>> on the cold tier. These fully mounted
17
28
indices eliminate the need for replicas, reducing required disk space by
18
29
approximately 50% compared to the regular indices.
19
-
* <<frozen-tier,Frozen tier>> nodes hold time series data that is accessed
30
+
* <<frozen-tier,Frozen tier>> nodes hold time series data that is accessed
20
31
rarely and never updated. The frozen tier stores <<partially-mounted,partially
21
32
mounted indices>> of <<ilm-searchable-snapshot,{search-snaps}>> exclusively.
22
33
This extends the storage capacity even further — by up to 20 times compared to
23
34
the warm tier.
24
35
25
-
TIP: The performance of an {es} node is often limited by the performance of the underlying storage.
36
+
TIP: The performance of an {es} node is often limited by the performance of the underlying storage and hardware profile.
37
+
For example hardware profiles, refer to Elastic Cloud's {cloud}/ec-reference-hardware.html[instance configurations].
26
38
Review our recommendations for optimizing your storage for <<indexing-use-faster-hardware,indexing>> and <<search-use-faster-hardware,search>>.
27
39
28
40
IMPORTANT: {es} generally expects nodes within a data tier to share the same
29
41
hardware profile. Variations not following this recommendation should be
30
42
carefully architected to avoid <<hotspotting,hot spotting>>.
31
43
32
-
When you index documents directly to a specific index, they remain on content tier nodes indefinitely.
44
+
The way data tiers are used often depends on the data's category:
45
+
46
+
- Content data remains on the <<content-tier,content tier>> for its entire
47
+
data lifecycle.
33
48
34
-
When you index documents to a data stream, they initially reside on hot tier nodes.
35
-
You can configure <<index-lifecycle-management, {ilm}>> ({ilm-init}) policies
36
-
to automatically transition your time series data through the hot, warm, and cold tiers
37
-
according to your performance, resiliency and data retention requirements.
49
+
- Time series data may progress through the
50
+
descending temperature data tiers (hot, warm, cold, and frozen) according to your
51
+
performance, resiliency, and data retention requirements.
52
+
+
53
+
You can automate these lifecycle transitions using the <<data-streams,data stream lifecycle>>, or custom <<index-lifecycle-management,{ilm}>>.
54
+
55
+
[discrete]
56
+
[[available-tier]]
57
+
=== Available data tiers
58
+
59
+
Learn more about each data tier, including when and how it should be used.
38
60
39
61
[discrete]
40
62
[[content-tier]]
41
-
=== Content tier
63
+
==== Content tier
42
64
43
65
// tag::content-tier[]
44
66
Data stored in the content tier is generally a collection of items such as a product catalog or article archive.
@@ -53,13 +75,14 @@ While they are also responsible for indexing, content data is generally not inge
53
75
as time series data such as logs and metrics. From a resiliency perspective the indices in this
54
76
tier should be configured to use one or more replicas.
55
77
56
-
The content tier is required. System indices and other indices that aren't part
57
-
of a data stream are automatically allocated to the content tier.
78
+
The content tier is required and is often deployed within the same node
79
+
grouping as the hot tier. System indices and other indices that aren't part
80
+
of a data stream are automatically allocated to the content tier.
58
81
// end::content-tier[]
59
82
60
83
[discrete]
61
84
[[hot-tier]]
62
-
=== Hot tier
85
+
==== Hot tier
63
86
64
87
// tag::hot-tier[]
65
88
The hot tier is the {es} entry point for time series data and holds your most-recent,
@@ -74,7 +97,7 @@ data stream>> are automatically allocated to the hot tier.
74
97
75
98
[discrete]
76
99
[[warm-tier]]
77
-
=== Warm tier
100
+
==== Warm tier
78
101
79
102
// tag::warm-tier[]
80
103
Time series data can move to the warm tier once it is being queried less frequently
@@ -87,7 +110,7 @@ For resiliency, indices in the warm tier should be configured to use one or more
87
110
88
111
[discrete]
89
112
[[cold-tier]]
90
-
=== Cold tier
113
+
==== Cold tier
91
114
92
115
// tag::cold-tier[]
93
116
When you no longer need to search time series data regularly, it can move from
@@ -109,7 +132,7 @@ but doesn't reduce required disk space compared to the warm tier.
109
132
110
133
[discrete]
111
134
[[frozen-tier]]
112
-
=== Frozen tier
135
+
==== Frozen tier
113
136
114
137
// tag::frozen-tier[]
115
138
Once data is no longer being queried, or being queried rarely, it may move from
@@ -123,9 +146,15 @@ sometimes fetch frozen data from the snapshot repository, searches on the frozen
123
146
tier are typically slower than on the cold tier.
124
147
// end::frozen-tier[]
125
148
149
+
[discrete]
150
+
[[configure-data-tiers]]
151
+
=== Configure data tiers
152
+
153
+
Follow the instructions for your deployment type to configure data tiers.
154
+
126
155
[discrete]
127
156
[[configure-data-tiers-cloud]]
128
-
=== Configure data tiers on {ess} or {ece}
157
+
==== {ess} or {ece}
129
158
130
159
The default configuration for an {ecloud} deployment includes a shared tier for
131
160
hot and content data. This tier is required and can't be removed.
@@ -159,7 +188,7 @@ tier].
159
188
160
189
[discrete]
161
190
[[configure-data-tiers-on-premise]]
162
-
=== Configure data tiers for self-managed deployments
191
+
==== Self-managed deployments
163
192
164
193
For self-managed deployments, each node's <<data-node,data role>> is configured
165
194
in `elasticsearch.yml`. For example, the highest-performance nodes in a cluster
The <<tier-preference-allocation-filter, `index.routing.allocation.include._tier_preference`>> setting determines which tier the index should be allocated to.
210
+
211
+
When you create an index, by default {es} sets the `_tier_preference`
182
212
to `data_content` to automatically allocate the index shards to the content tier.
183
213
184
214
When {es} creates an index as part of a <<data-streams, data stream>>,
to `data_hot` to automatically allocate the index shards to the hot tier.
188
217
189
-
You can explicitly set `index.routing.allocation.include._tier_preference`
190
-
to opt out of the default tier-based allocation.
218
+
At the time of index creation, you can override the default setting by explicitly setting
219
+
the preferred value in one of two ways:
220
+
221
+
- Using an <<index-templates,index template>>. Refer to <<getting-started-index-lifecycle-management,Automate rollover with ILM>> for details.
222
+
- Within the <<indices-create-index,create index>> request body.
223
+
224
+
You can override this
225
+
setting after index creation by <<indices-update-settings,updating the index setting>> to the preferred
226
+
value.
227
+
228
+
This setting also accepts multiple tiers in order of preference. This prevents indices from remaining unallocated if no nodes are available in the preferred tier. For example, when {ilm} migrates an index to the cold phase, it sets the index `_tier_preference` to `data_cold,data_warm,data_hot`.
229
+
230
+
To remove the data tier preference
231
+
setting, set the `_tier_preference` value to `null`. This allows the index to allocate to any data node within the cluster. Setting the `_tier_preference` to `null` does not restore the default value. Note that, in the case of managed indices, a <<ilm-migrate,migrate>> action might apply a new value in its place.
232
+
233
+
[discrete]
234
+
[[data-tier-allocation-value]]
235
+
==== Determine the current data tier preference
236
+
237
+
You can check an existing index's data tier preference by <<indices-get-settings,polling its
238
+
settings>> for `index.routing.allocation.include._tier_preference`:
The `_tier_preference` setting might conflict with other allocation settings. This conflict might prevent the shard from allocating. A conflict might occur when a cluster has not yet been completely <<troubleshoot-migrate-to-tiers,migrated
251
+
to data tiers>>.
252
+
253
+
This setting will not unallocate a currently allocated shard, but might prevent it from migrating from its current location to its designated data tier. To troubleshoot, call the <<cluster-allocation-explain,cluster allocation explain API>> and specify the suspected problematic shard.
191
254
192
255
[discrete]
193
256
[[data-tier-migration]]
194
-
=== Automatic data tier migration
257
+
==== Automatic data tier migration
195
258
196
259
{ilm-init} automatically transitions managed
197
260
indices through the available data tiers using the <<ilm-migrate, migrate>> action.
198
261
By default, this action is automatically injected in every phase.
199
-
You can explicitly specify the migrate action with `"enabled": false` to disable automatic migration,
262
+
You can explicitly specify the migrate action with `"enabled": false` to <<ilm-disable-migrate-ex,disable automatic migration>>,
200
263
for example, if you're using the <<ilm-allocate, allocate action>> to manually
0 commit comments