Explain what the ES rollover initializer does#1109
Merged
yurishkuro merged 17 commits intoJun 18, 2026
Conversation
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>
There was a problem hiding this comment.
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.
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>
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>
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>
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>
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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Yuri Shkuro <github@ysh.us>
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>
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jaeger-es-rollover init: creating index templates, seed indices, and read/write aliases.is_write_indexflag on write aliases.rolloverandlookbackcron jobs.Test plan
🤖 Generated with Claude Code