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/indices/downsample-data-stream.asciidoc
+3-41Lines changed: 3 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,8 @@ DELETE _index_template/*
75
75
////
76
76
// end::downsample-example[]
77
77
78
+
Check the <<downsampling,Downsampling>> documentation for an overview, details about the downsampling process, and examples of running downsampling manually and as part of an ILM policy.
79
+
78
80
[[downsample-api-request]]
79
81
==== {api-request-title}
80
82
@@ -115,44 +117,4 @@ to aggregate the original time series index. For example, `60m` produces a
115
117
document for each 60 minute (hourly) interval. This follows standard time
116
118
formatting syntax as used elsewhere in {es}.
117
119
+
118
-
NOTE: Smaller, more granular intervals take up proportionally more space.
119
-
120
-
[[downsample-api-process]]
121
-
==== The downsampling process
122
-
123
-
The downsampling operation traverses the source TSDS index and performs the
124
-
following steps:
125
-
126
-
. Creates a new document for each value of the `_tsid` field and each
127
-
`@timestamp` value, rounded to the `fixed_interval` defined in the downsample
128
-
configuration.
129
-
. For each new document, copies all <<time-series-dimension,time
130
-
series dimensions>> from the source index to the target index. Dimensions in a
131
-
TSDS are constant, so this is done only once per bucket.
132
-
. For each <<time-series-metric,time series metric>> field, computes aggregations
133
-
for all documents in the bucket. Depending on the metric type of each metric
134
-
field a different set of pre-aggregated results is stored:
135
-
136
-
** `gauge`: The `min`, `max`, `sum`, and `value_count` are stored; `value_count`
137
-
is stored as type `aggregate_metric_double`.
138
-
** `counter`: The `last_value` is stored.
139
-
. For all other fields, the most recent value is copied to the target index.
140
-
141
-
[[downsample-api-mappings]]
142
-
==== Source and target index field mappings
143
-
144
-
Fields in the target, downsampled index are created based on fields in the
145
-
original source index, as follows:
146
-
147
-
. All fields mapped with the `time-series-dimension` parameter are created in
148
-
the target downsample index with the same mapping as in the source index.
149
-
. All fields mapped with the `time_series_metric` parameter are created
150
-
in the target downsample index with the same mapping as in the source
151
-
index. An exception is that for fields mapped as `time_series_metric: gauge`
152
-
the field type is changed to `aggregate_metric_double`.
153
-
. All other fields that are neither dimensions nor metrics (that is, label
154
-
fields), are created in the target downsample index with the same mapping
155
-
that they had in the source index.
156
-
157
-
Check the <<downsampling,Downsampling>> documentation for an overview and
158
-
examples of running downsampling manually and as part of an ILM policy.
120
+
NOTE: Smaller, more granular intervals take up proportionally more space.
Copy file name to clipboardExpand all lines: docs/reference/modules/indices/fielddata.asciidoc
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,6 @@ The field data cache contains <<fielddata-mapping-param, field data>> and <<eage
5
5
which are both used to support aggregations on certain field types.
6
6
Since these are on-heap data structures, it is important to monitor the cache's use.
7
7
8
-
[discrete]
9
-
[[fielddata-sizing]]
10
-
==== Cache size
11
-
12
8
The entries in the cache are expensive to build, so the default behavior is
13
9
to keep the cache loaded in memory. The default cache size is unlimited,
14
10
causing the cache to grow until it reaches the limit set by the <<fielddata-circuit-breaker, field data circuit breaker>>. This behavior can be configured.
@@ -20,16 +16,12 @@ at the cost of rebuilding the cache as needed.
20
16
If the circuit breaker limit is reached, further requests that increase the cache
21
17
size will be prevented. In this case you should manually <<indices-clearcache, clear the cache>>.
22
18
19
+
TIP: You can monitor memory usage for field data as well as the field data circuit
20
+
breaker using
21
+
the <<cluster-nodes-stats,nodes stats API>> or the <<cat-fielddata,cat fielddata API>>.
22
+
23
23
`indices.fielddata.cache.size`::
24
24
(<<static-cluster-setting,Static>>)
25
25
The max size of the field data cache, eg `38%` of node heap space, or an
26
26
absolute value, eg `12GB`. Defaults to unbounded. If you choose to set it,
27
-
it should be smaller than <<fielddata-circuit-breaker>> limit.
28
-
29
-
[discrete]
30
-
[[fielddata-monitoring]]
31
-
==== Monitoring field data
32
-
33
-
You can monitor memory usage for field data as well as the field data circuit
34
-
breaker using
35
-
the <<cluster-nodes-stats,nodes stats API>> or the <<cat-fielddata,cat fielddata API>>.
27
+
it should be smaller than <<fielddata-circuit-breaker>> limit.
0 commit comments