Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Sep 29, 2023

Today SnapshotRetentionConfiguration requires a full set of
SnapshotInfo objects to do its retention computations, but these can
be fairly large and expensive to obtain in a large repository. Moreover
it doesn't need the whole SnapshotInfo, everything it needs is in
SnapshotDetails which is in the root RepositoryData blob and usually
held in-memory on the master node.

This commit reworks SnapshotRetentionConfiguration to do its
computations based on SnapshotDetails.

Today `SnapshotRetentionConfiguration` requires a full set of
`SnapshotInfo` objects to do its retention computations, but these can
be fairly large and expensive to obtain in a large repository. Moreover
it doesn't need the whole `SnapshotInfo`, everything it needs is held in
`SnapshotDetails` which is usually held in-memory on the master node in
most cases, and even if not we can get them from the root blob.

This commit reworks `SnapshotRetentionConfiguration` to do its
computations based on `SnapshotDetails`.
@DaveCTurner DaveCTurner added >non-issue :Data Management/ILM+SLM Index and Snapshot lifecycle management v8.11.0 labels Sep 29, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Sep 29, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Sep 29, 2023
@elasticsearchmachine elasticsearchmachine merged commit b4e9388 into elastic:main Sep 29, 2023
@DaveCTurner DaveCTurner deleted the 2023/09/29/SnapshotRetentionConfiguration-SnapshotDetails branch September 29, 2023 12:43
Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

A bit late :), but LGTM

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Sep 29, 2023
A follow-on from elastic#100058 to make `SnapshotRetentionConfiguration` even
more `SnapshotDetails`-based.
DaveCTurner added a commit that referenced this pull request Sep 29, 2023
A follow-on from #100058 to make `SnapshotRetentionConfiguration` even
more `SnapshotDetails`-based.
piergm pushed a commit to piergm/elasticsearch that referenced this pull request Oct 2, 2023
Today `SnapshotRetentionConfiguration` requires a full set of
`SnapshotInfo` objects to do its retention computations, but these can
be fairly large and expensive to obtain in a large repository. Moreover
it doesn't need the whole `SnapshotInfo`, everything it needs is in
`SnapshotDetails` which is in the root `RepositoryData` blob and usually
held in-memory on the master node.

This commit reworks `SnapshotRetentionConfiguration` to do its
computations based on `SnapshotDetails`.
piergm pushed a commit to piergm/elasticsearch that referenced this pull request Oct 2, 2023
…0065)

A follow-on from elastic#100058 to make `SnapshotRetentionConfiguration` even
more `SnapshotDetails`-based.
jakelandis pushed a commit to jakelandis/elasticsearch that referenced this pull request Oct 2, 2023
Today `SnapshotRetentionConfiguration` requires a full set of
`SnapshotInfo` objects to do its retention computations, but these can
be fairly large and expensive to obtain in a large repository. Moreover
it doesn't need the whole `SnapshotInfo`, everything it needs is in
`SnapshotDetails` which is in the root `RepositoryData` blob and usually
held in-memory on the master node.

This commit reworks `SnapshotRetentionConfiguration` to do its
computations based on `SnapshotDetails`.
jakelandis pushed a commit to jakelandis/elasticsearch that referenced this pull request Oct 2, 2023
…0065)

A follow-on from elastic#100058 to make `SnapshotRetentionConfiguration` even
more `SnapshotDetails`-based.
@DaveCTurner DaveCTurner restored the 2023/09/29/SnapshotRetentionConfiguration-SnapshotDetails branch June 17, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Data Management/ILM+SLM Index and Snapshot lifecycle management >non-issue Team:Data Management Meta label for data/management team v8.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants