Skip to content

Explain what the ES rollover initializer does#1109

Merged
yurishkuro merged 17 commits into
jaegertracing:mainfrom
yurishkuro:explain-es-initializer
Jun 18, 2026
Merged

Explain what the ES rollover initializer does#1109
yurishkuro merged 17 commits into
jaegertracing:mainfrom
yurishkuro:explain-es-initializer

Conversation

@yurishkuro

@yurishkuro yurishkuro commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary

  • Document the specific steps performed by jaeger-es-rollover init: creating index templates, seed indices, and read/write aliases.
  • Explain what changes with ILM enabled: policy validation, lifecycle settings embedded in templates, and is_write_index flag on write aliases.
  • Clarify that ILM removes the need for the rollover and lookback cron jobs.

Test plan

  • Verify the docs render correctly with Hugo

🤖 Generated with Claude Code

Document the specific steps performed by `jaeger-es-rollover init`:
creating index templates, seed indices, and read/write aliases.
Also explain ILM-specific behavior (policy validation, lifecycle
settings in templates, is_write_index flag on aliases).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the Elasticsearch storage documentation by explicitly describing what jaeger-es-rollover init does during rollover initialization, and how that behavior changes (and simplifies operations) when ILM is enabled.

Changes:

  • Expands the “Initialize” section with a concrete, step-by-step description of templates, seed indices, and read/write aliases.
  • Adds an ILM-focused explanation of additional initializer behavior (policy validation, lifecycle settings, write-alias requirements).
  • Clarifies operational impact of ILM vs. the manual rollover workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread content/docs/v2/_dev/storage/elasticsearch.md Outdated
Comment thread content/docs/v2/_dev/storage/elasticsearch.md Outdated
yurishkuro and others added 2 commits June 18, 2026 17:20
Add a high-level comparison table of the three index management
strategies (daily indices, rollover, rollover with ILM) and a
config options matrix showing use_aliases, use_ilm, and
create_mappings with their interactions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
The date_layout config allows hourly (or other) index granularity,
not just daily. Add date_layout to the config matrix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:21
yurishkuro and others added 4 commits June 18, 2026 17:22
Strategies as columns, concerns as rows. Mention daily/hourly
in the time-based column.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
It requires running a cron job, making it a manual process
compared to ILM-managed rollover.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Mention the actor (Jaeger, operator/cron, Elasticsearch) for
each index management strategy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Elasticsearch creates subsequent indices, not the cron job.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread content/docs/v2/_dev/storage/elasticsearch.md Outdated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:25
yurishkuro and others added 2 commits June 18, 2026 17:26
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread content/docs/v2/_dev/storage/elasticsearch.md Outdated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread content/docs/v2/_dev/storage/elasticsearch.md Outdated
yurishkuro and others added 2 commits June 18, 2026 17:32
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
- Fix table separator to use 3+ hyphens for compatibility
- Add comma after introductory clause on line 97
- Mention index-cleaner is also unnecessary with ILM

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:34
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread content/docs/v2/_dev/storage/elasticsearch.md Outdated
ILM is simpler than manual rollover, not more complex.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread content/docs/v2/2.19/storage/elasticsearch.md
Comment thread content/docs/v2/2.19/storage/elasticsearch.md
Comment thread content/docs/v2/_dev/storage/elasticsearch.md
Comment thread content/docs/v2/_dev/storage/elasticsearch.md
yurishkuro and others added 2 commits June 18, 2026 17:42
- Remove "two" from "two cron jobs" (lookback is optional)
- Mark lookback as (optional) in strategy table
- Use full dotted path index.lifecycle.* for clarity

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Both Jaeger and jaeger-es-rollover use the same MappingBuilder
code. The restriction exists because init already creates templates
as part of index initialization, not because Jaeger cannot produce
ILM-aware templates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copilot AI review requested due to automatic review settings June 18, 2026 21:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@yurishkuro yurishkuro merged commit f1c920b into jaegertracing:main Jun 18, 2026
8 checks passed
@yurishkuro yurishkuro deleted the explain-es-initializer branch June 18, 2026 22:01
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.

2 participants