Commit graph

12 commits

Author SHA1 Message Date
Martijn van Groningen
4b8d99252d
Update documentation around index.look_ahead_time setting. (#103975)
Adjusted the default after #103898
2024-01-10 09:48:17 +01:00
Martijn van Groningen
842303cd7f
Lower the look_ahead_time setting's maximum value. (#103434)
Initially the index.look_head_time was both used to define the index.time_series.start_time and index.time_series.end_time.

The former is now controlled by index.look_back_time and the maximum value of 7 days for index.look_ahead_time is too generous. As it also delays data being indexed to new index after rollover by up to 7 days.

This PR changes the index.look_ahead_time setting's maximum allowed value from 7 days to 2 hours, which is equal to the index.look_ahead_time setting's default. A look ahead time of 2 hours is high enough to accept data that is ahead of the current time, but avoids configuring the index.look_ahead_time setting to a too high value that causes rolled over indices to not receive writes for a very long period.

This is a breaking change, but configuring the index.look_ahead_time setting to a higher value than 2 hours will not fail. Instead 2 hours will be used a look ahead time.
2023-12-20 09:00:04 +01:00
Andrei Dan
632c97b234
Document ILM waits for tsds end_time to lapse in some actions (#100204) 2023-10-04 07:55:58 -04:00
Martijn van Groningen
3e3ee42589
Add index.look_back_time setting for tsdb data streams (#98518)
This change adds a `index.look_back_time` index setting that sets the `index.time_series.start_time` setting for the first backing index when a data stream is created.

This allows accepting data that is older for initial indexing without changing the `index.look_ahead_time` setting. This setting also controls the `index.time_series.end_time` setting and would affect rollovers as well.

The default for the `index.look_back_time` is `2h`, which means documents with `@timestamp` up to 2 hours after creation of the data stream are allowed to be indexed. This is the same as is without this change, because `index.look_ahead_time` is used to set `index.time_series.start_time` of the first backing index.

Closes #98463
2023-09-08 11:11:43 +02:00
Martijn van Groningen
d5f9e113a5
Update tsds-index-settings.asciidoc (#96366)
* index.routing_path only gets generated for backing indices of tsdb data streams.
* Updated the dimension_fields.limit setting default.

Closes #96330
2023-05-26 19:23:53 +02:00
Martijn van Groningen
49e8ee4269
Remove remaining tsdb tech preview labels (#95563)
Remove tech preview label from a number of tsdb settings and mapping attributes.
2023-04-26 12:11:03 +02:00
David Kilfoyle
7c6025dd27
Remove tech preview disclaimer from TSDS ingest docs (#91519)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2022-11-22 09:23:40 -05:00
David Kilfoyle
2a44a8982f
[DOCS] Remove feature flag from TSDS docs (#89673)
* Docs: Remove feature flag and add preview label to TSDS docs

* Fix technical preview tag
2022-08-29 10:33:55 -04:00
Martijn van Groningen
6ca2e796a9
Added additional index.look_ahead_time validation (#87847)
Added a requirement that index.look_ahead_time index setting
can't be lower than time_series.poll_interval setting.

Additional changes:
* Fixed a mistake in the docs that referenced indices.lifecycle.poll_interval
  instead of time_series.poll_interval.
* Moved index.look_ahead_time setting to data stream module.
2022-06-21 10:50:33 +02:00
David Kilfoyle
40e9f3097c
[DOCS] Add TSDS docs, take two (#87703)
* Revert "Revert "[DOCS] Add TSDS docs (#86905)" (#87702)"

This reverts commit 0c86d7b9b2.

* First fix to tests

* Add data_stream object to index template

* small rewording

* Add enable data stream object in gradle example setup

* Add bullet about data stream must be enabled in template
2022-06-16 12:44:10 -04:00
David Kilfoyle
0c86d7b9b2
Revert "[DOCS] Add TSDS docs (#86905)" (#87702)
Reverts elastic/elasticsearch#86905
2022-06-15 13:32:12 -04:00
David Kilfoyle
d57f4ac2c6
[DOCS] Add TSDS docs (#86905)
* [DOCS] Add TSDB docs

* Update docs/build.gradle

Co-authored-by: Adam Locke <adam.locke@elastic.co>

* Address Nik's comments, part 1

* Address Nik's comments, part deux

* Reword write index

* Add feature flags

* Wrap one more section in feature flag

* Small fixes

* set index.routing_path to optional

* Update storage reduction value

* Update create index template code example

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Adam Locke <adam.locke@elastic.co>
2022-06-15 12:22:07 -04:00