Skip to content

Conversation

joegallo
Copy link
Contributor

@joegallo joegallo commented Dec 18, 2024

Adds a replicate_for option (expressed as a time value) to the ILM searchable_snapshot action. If that option is present, then the searchable snapshot will be mounted with one replica (rather than zero replicas), and ILM execution will wait in the searchable snapshot action until the replicate_for time value has passed. Once the time value has passed, then the replica will be removed and execution will continue.

As an example, this makes it possible to have a frozen phase that lasts for 60 days, but to have 14 days worth of frozen data mounted with replicas.

@joegallo joegallo added >enhancement WIP :Data Management/ILM+SLM Index and Snapshot lifecycle management auto-backport Automatically create backport pull requests when merged v9.0.0 v8.18.0 labels Dec 18, 2024
@joegallo joegallo requested a review from dakrone December 18, 2024 18:47
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

Provisionally looks good to me!

@joegallo joegallo marked this pull request as ready for review January 16, 2025 00:01
@joegallo joegallo removed the WIP label Jan 16, 2025
@joegallo joegallo requested a review from dakrone January 21, 2025 19:17
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, are you going to do docs in this PR, or a subsequent one?

@joegallo
Copy link
Contributor Author

LGTM, are you going to do docs in this PR, or a subsequent one?

I'll do them on this PR first thing tomorrow -- thanks for the code review, and I'll ping you for one last look at the docs before I merge this.

@joegallo joegallo force-pushed the ilm-searchable-snapshot-replicate-for branch from c19732e to da09652 Compare January 27, 2025 15:18
@joegallo joegallo added the >docs General docs changes label Jan 27, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine elasticsearchmachine added the Team:Docs Meta label for docs team label Jan 27, 2025
@joegallo joegallo removed >docs General docs changes Team:Docs Meta label for docs team labels Jan 27, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @joegallo, I've created a changelog YAML for you.

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

Docs LGTM also

@joegallo
Copy link
Contributor Author

CI passed but github missed the update notification, I'm merging this.

@joegallo joegallo merged commit 9bc9ba7 into elastic:main Jan 27, 2025
15 of 16 checks passed
@joegallo joegallo deleted the ilm-searchable-snapshot-replicate-for branch January 27, 2025 19:32
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Data Management/ILM+SLM Index and Snapshot lifecycle management >enhancement Team:Data Management Meta label for data/management team v8.18.0 v9.0.0

3 participants