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
Copy file name to clipboardExpand all lines: docs/reference/elasticsearch/index-settings/time-series.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,39 @@ $$$index-look-back-time$$$
44
44
: (Static, [time units](/reference/elasticsearch/rest-apis/api-conventions.md#time-units)) Interval used to calculate the `index.time_series.start_time` for a TSDS’s first backing index when a tsdb data stream is created. Defaults to `2h` (2 hours). Accepts `1m` (one minute) to `7d` (seven days). Only indices with an `index.mode` of `time_series` support this setting. For more information, refer to [Look-back time](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md#tsds-look-back-time).
: (Static, string or array of strings) Plain `keyword` fields used to route documents in a TSDS to index shards. Supports wildcards (`*`). Only indices with an `index.mode` of `time_series` support this setting. Defaults to an empty list, except for data streams then defaults to the list of [dimension fields](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md#time-series-dimension) with a `time_series_dimension` value of `true` defined in your component and index templates. For more information, refer to [Dimension-based routing](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md#dimension-based-routing).
47
+
: (Static, string or array of strings) Time series dimension fields used to route documents in a TSDS to index shards.
48
+
Supports wildcards (`*`).
49
+
Only indices with an `index.mode` of `time_series` support this setting.
50
+
51
+
: Defaults value:
52
+
: Indices that are not part of a time series data stream have no default value and require the routing path to be defined explicitly.
53
+
If a time series data stream is used that is eligible for the `index.dimensions`-based routing (see [`index.dimensions_tsid_strategy_enabled`](#index-dimensions-tsid-strategy-enabled)),
54
+
the `index.routing_path` will be empty.
55
+
For time series data streams where the `index.dimensions`-based routing does not apply,
56
+
this defaults to the list of [dimension fields](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md#time-series-dimension) with a `time_series_dimension` value of `true` as defined in your component and index templates.
57
+
58
+
: Manually setting a value disables the `index.dimensions`-based routing strategy (see [`index.dimensions_tsid_strategy_enabled`](#index-dimensions-tsid-strategy-enabled)).
59
+
For more information, refer to [Dimension-based routing](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md#dimension-based-routing).
60
+
61
+
62
+
$$$index-dimensions-tsid-strategy-enabled$$$
63
+
64
+
`index.dimensions_tsid_strategy_enabled` {applies_to}`stack: ga 9.2` {applies_to}`serverless: all`
65
+
: (Static, boolean) Controls if the `_tsid` can be created using the `index.dimensions` index setting.
66
+
This is an internal setting that will be automatically populated and updated for eligible time series data streams and is not user-configurable.
67
+
This strategy offers an improved ingestion performance that avoids processing dimensions multiple times for the purposes of shard routing and creating the `_tsid`.
68
+
When used, `index.routing_path` will not be set and shard routing uses the full `_tsid`,
69
+
which can help to avoid shard hot-spotting.
70
+
71
+
: If set to `false`,
72
+
or `index.routing_path` is configured manually,
73
+
or in case the index isn't eligible (see below),
74
+
shard routing will be based on the `index.routing_path` instead.
75
+
76
+
: Defaults to `true`.
77
+
78
+
: This optimized `_tsid` creation strategy is only available for data streams and if there are no dynamic templates that set `time_series_dimension: true`.
79
+
Trying to add such a dynamic template to existing backing indices after the fact will fail the update mapping request and you will need to roll over the data stream instead.
Copy file name to clipboardExpand all lines: modules/data-streams/src/test/java/org/elasticsearch/datastreams/DataStreamIndexSettingsProviderTests.java
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,8 @@ public class DataStreamIndexSettingsProviderTests extends ESTestCase {
0 commit comments