Skip to content

Document TSDB backfill behaviour - #7558

Open
lcawl wants to merge 30 commits into
elastic:mainfrom
lcawl:backfill-tsdb-docs
Open

Document TSDB backfill behaviour#7558
lcawl wants to merge 30 commits into
elastic:mainfrom
lcawl:backfill-tsdb-docs

Conversation

@lcawl

@lcawl lcawl commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Addresses #7252

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No
  1. If you answered "Yes" to the previous question, please specify the tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.).

Tool(s) and model(s) used: Cursor Grok 4.5, Composer 2.5

@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Elastic Docs Style Checker (Vale)

Summary: 1 warning, 4 suggestions found

⚠️ Warnings (1): Fix when the suggestion improves clarity or correctness.
File Line Rule Message
manage-data/data-store/data-streams/time-bound-tsds.md 31 Elastic.DontUse Don't use 'just'.
💡 Suggestions (4): Optional style improvements. Apply when helpful.
File Line Rule Message
manage-data/data-store/data-streams.md 39 Elastic.WordChoice Consider using 'can, might' instead of 'may', unless the term is in the UI.
manage-data/data-store/data-streams/load-historical-tsds.md 20 Elastic.WordChoice Consider using 'deactivated, deselected, hidden, turned off, unavailable' instead of 'disabled', unless the term is in the UI.
manage-data/data-store/data-streams/time-bound-tsds.md 93 Elastic.WordChoice Consider using 'can, might' instead of 'may', unless the term is in the UI.
manage-data/lifecycle/data-stream.md 46 Elastic.WordChoice Consider using 'run, start' instead of 'execute', unless the term is in the UI.

The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@lcawl
lcawl requested a review from gmarouli July 31, 2026 05:01
@lcawl
lcawl marked this pull request as ready for review July 31, 2026 05:01
@lcawl
lcawl requested review from a team as code owners July 31, 2026 05:01
Comment thread manage-data/data-store/data-streams/reindex-tsds.md Outdated

@gmarouli gmarouli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great start, I will investigate the two follow up actions I noted:

  1. Set-up should also use DLM instead of ILM.
  2. Reindexing needs to be reworked.

Comment thread manage-data/data-store/data-streams/time-bound-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/set-up-tsds.md
Comment thread manage-data/data-store/data-streams/set-up-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
@gmarouli

gmarouli commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

@lcawl we realised that changing the cluster setting is not accessible to serverless users. So for now let's keep this as a stack feature, and we will add serverless when a user will be able to enable it.

Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/reindex-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/run-downsampling.md
Comment thread manage-data/data-store/data-streams/set-up-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/set-up-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/set-up-tsds.md Outdated
@lcawl

lcawl commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

About the reindexing guide, is it common practice to have both processes interleaved? I have to admit I find it a bit confusing. I like the tabs of the overview much more, could we do the same for the steps? What do you think?

I think we can make a lot of improvements to that page layout and it likely requires more discussion so for now I've deferred that to #8021

@lcawl
lcawl marked this pull request as ready for review August 24, 2026 21:51

@gmarouli gmarouli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for all this work @lcawl , I added some minor comments that I leave to your judgement

Comment thread manage-data/data-store/data-streams/set-up-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/set-up-tsds.md Outdated
Co-authored-by: Mary Gouseti <mgouseti@gmail.com>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>

@leemthompo leemthompo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a few mostly minor language and structure suggestions. I didn't test the API calls. :)

Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated
Historical data must fit on the target tier as a whole before you enable data stream lifecycle.
If you're importing a large data set, split it into batches.
Each batch should fit within available disk space at indexing time.
:::

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are there any relevant links we could add here?

Comment thread manage-data/data-store/data-streams/load-historical-tsds.md Outdated

:::{image} /manage-data/images/elasticsearch-reference-time-bound-indices.svg
:alt: time bound indices
:alt: Time bound indices

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big visual that takes up a lot of real estate but isn't introduced or explained, which contributes to this section being kinda hard to read.


- An `index.time_series.start_time` value set to `now - index.look_back_time`
- An `index.time_series.end_time` value set to `now + index.look_ahead_time`
::::{tip}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this tip feels too big, consider moving the info to a subsection

Comment thread manage-data/data-store/data-streams/time-bound-tsds.md Outdated
Timestamps outside the eligible write window or in the future are still rejected.
If a [failure store](/manage-data/data-store/data-streams/failure-store.md) is enabled, rejected timestamp failures can be redirected there.

:::{admonition} Lifecycle age for past indices

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the placement of this admonition is a little jarring to my eyes, maybe this flow better as a plain paragraph in the configuration section


```console
GET _data_stream/my-tsds
## Past index creation [tsds-past-index-creation]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this section could be reordered a bit:

what is it → what limits it → how to tune it → edge case → next steps

lcawl and others added 2 commits September 9, 2026 17:34

@yetanothertw yetanothertw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @lcawl!
Left a few suggestions suggestions for linking concepts, but nothing blocking the PR.

---
navigation_title: "Load historical data"
applies_to:
stack: ga 9.5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the parent page contains two dimensions, I think we should explicitly call out serverless: unavailable here


## Protect the cluster during large loads

Loading months of historical data can trigger significant storage use, force merge activity, and lifecycle processing in parallel.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire section sounds like a prerequisite or advice that one would need to know before loading historical data.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe these are considerations for production environments?

# Time-bound indices and dimension-based routing [time-bound-indices]

Unlike regular data streams that only write to the most recent backing index, time series data streams (TSDS) use time-bound backing indices that accept documents based on their timestamp values. This page provides details and best practices to help you work with time-bound indices.
Unlike regular data streams that write only to the most recent backing index, {{tsds}} ({{tsds-init}}) are backed by a set of time-bound indices, each covering a contiguous, non-overlapping time range.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit:
{{tsds}} resolves to time series data stream, and I think it might need to be plural here ...data streams

Comment thread manage-data/data-store/data-streams/time-bound-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/time-bound-tsds.md Outdated
Comment thread manage-data/data-store/data-streams/time-bound-tsds.md Outdated
Comment thread docset.yml
fedramp-mod: "FedRAMP Moderate"
fedramp-high: "FedRAMP High"
fedramp-il5: "FedRAMP IL5"
tsds: "time series data stream"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to add a plural, too?

lcawl and others added 2 commits September 11, 2026 21:29
Co-authored-by: Vlada Chirmicci <vlada.chirmicci@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants