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 nodes with the same data role that
6
+ typically share the same hardware profile:
7
7
8
8
* <<content-tier, Content tier>> nodes handle the indexing and query load for content such as a product catalog.
9
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
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
12
12
and rarely needs to be updated.
13
13
* <<cold-tier, Cold tier>> nodes hold time series data that is accessed occasionally and not normally updated.
14
14
15
- When you index documents directly to a specific index, they remain on content tier nodes indefinitely.
15
+ When you index documents directly to a specific index, they remain on content tier nodes indefinitely.
16
16
17
- When you index documents to a data stream, they initially reside on hot tier nodes.
17
+ When you index documents to a data stream, they initially reside on hot tier nodes.
18
18
You can configure <<index-lifecycle-management, {ilm}>> ({ilm-init}) policies
19
- to automatically transition your time series data through the hot, warm, and cold tiers
20
- according to your performance, resiliency and data retention requirements.
19
+ to automatically transition your time series data through the hot, warm, and cold tiers
20
+ according to your performance, resiliency and data retention requirements.
21
21
22
- A node's <<data-node, data role>> is configured in `elasticsearch.yml`.
22
+ A node's <<data-node, data role>> is configured in `elasticsearch.yml`.
23
23
For example, the highest-performance nodes in a cluster might be assigned to both the hot and content tiers:
24
24
25
25
[source,yaml]
@@ -33,9 +33,9 @@ node.roles: ["data_hot", "data_content"]
33
33
34
34
Data stored in the content tier is generally a collection of items such as a product catalog or article archive.
35
35
Unlike time series data, the value of the content remains relatively constant over time,
36
- so it doesn't make sense to move it to a tier with different performance characteristics as it ages.
37
- Content data typically has long data retention requirements, and you want to be able to retrieve
38
- items quickly regardless of how old they are.
36
+ so it doesn't make sense to move it to a tier with different performance characteristics as it ages.
37
+ Content data typically has long data retention requirements, and you want to be able to retrieve
38
+ items quickly regardless of how old they are.
39
39
40
40
Content tier nodes are usually optimized for query performance--they prioritize processing power over IO throughput
41
41
so they can process complex searches and aggregations and return results quickly.
@@ -49,10 +49,10 @@ New indices are automatically allocated to the <<content-tier>> unless they are
49
49
[[hot-tier]]
50
50
=== Hot tier
51
51
52
- The hot tier is the {es} entry point for time series data and holds your most-recent,
53
- most-frequently-searched time series data.
54
- Nodes in the hot tier need to be fast for both reads and writes,
55
- which requires more hardware resources and faster storage (SSDs).
52
+ The hot tier is the {es} entry point for time series data and holds your most-recent,
53
+ most-frequently-searched time series data.
54
+ Nodes in the hot tier need to be fast for both reads and writes,
55
+ which requires more hardware resources and faster storage (SSDs).
56
56
For resiliency, indices in the hot tier should be configured to use one or more replicas.
57
57
58
58
New indices that are part of a <<data-streams, data stream>> are automatically allocated to the
@@ -62,51 +62,51 @@ hot tier.
62
62
[[warm-tier]]
63
63
=== Warm tier
64
64
65
- Time series data can move to the warm tier once it is being queried less frequently
66
- than the recently-indexed data in the hot tier.
67
- The warm tier typically holds data from recent weeks.
65
+ Time series data can move to the warm tier once it is being queried less frequently
66
+ than the recently-indexed data in the hot tier.
67
+ The warm tier typically holds data from recent weeks.
68
68
Updates are still allowed, but likely infrequent.
69
- Nodes in the warm tier generally don't need to be as fast as those in the hot tier.
69
+ Nodes in the warm tier generally don't need to be as fast as those in the hot tier.
70
70
For resiliency, indices in the warm tier should be configured to use one or more replicas.
71
71
72
72
[discrete]
73
73
[[cold-tier]]
74
74
=== Cold tier
75
75
76
- Once data in the warm tier is no longer being updated, it can move to the cold tier.
77
- The cold tier typically holds the data from recent months or years .
76
+ Once data is no longer being updated, it can move from the warm tier to the cold tier where it
77
+ stays for the rest of its life .
78
78
The cold tier is still a responsive query tier, but data in the cold tier is not normally updated.
79
79
As data transitions into the cold tier it can be compressed and shrunken.
80
- For resiliency, indices in the cold tier can rely on
81
- <<ilm-searchable-snapshot, searchable snapshots>>, eliminating the need for replicas.
80
+ For resiliency, indices in the cold tier can rely on
81
+ <<ilm-searchable-snapshot, searchable snapshots>>, eliminating the need for replicas.
82
82
83
83
[discrete]
84
84
[[data-tier-allocation]]
85
85
=== Data tier index allocation
86
86
87
- When you create an index, by default {es} sets
87
+ When you create an index, by default {es} sets
88
88
<<tier-preference-allocation-filter, `index.routing.allocation.include._tier_preference`>>
89
89
to `data_content` to automatically allocate the index shards to the content tier.
90
90
91
- When {es} creates an index as part of a <<data-streams, data stream>>,
92
- by default {es} sets
91
+ When {es} creates an index as part of a <<data-streams, data stream>>,
92
+ by default {es} sets
93
93
<<tier-preference-allocation-filter, `index.routing.allocation.include._tier_preference`>>
94
94
to `data_hot` to automatically allocate the index shards to the hot tier.
95
95
96
- You can override the automatic tier-based allocation by specifying
96
+ You can override the automatic tier-based allocation by specifying
97
97
<<shard-allocation-filtering, shard allocation filtering>>
98
98
settings in the create index request or index template that matches the new index.
99
99
100
- You can also explicitly set `index.routing.allocation.include._tier_preference`
101
- to opt out of the default tier-based allocation.
100
+ You can also explicitly set `index.routing.allocation.include._tier_preference`
101
+ to opt out of the default tier-based allocation.
102
102
If you set the tier preference to `null`, {es} ignores the data tier roles during allocation.
103
103
104
104
[discrete]
105
105
[[data-tier-migration]]
106
106
=== Automatic data tier migration
107
107
108
108
{ilm-init} automatically transitions managed
109
- indices through the available data tiers using the <<ilm-migrate, migrate>> action.
110
- By default, this action is automatically injected in every phase.
111
- You can explicitly specify the migrate action to override the default behavior,
109
+ indices through the available data tiers using the <<ilm-migrate, migrate>> action.
110
+ By default, this action is automatically injected in every phase.
111
+ You can explicitly specify the migrate action to override the default behavior,
112
112
or use the <<ilm-allocate, allocate action>> to manually specify allocation rules.
0 commit comments