-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Remove soft limit for snapshot repositories #80745
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,10 +272,13 @@ policy. Other snapshots don't count toward the policy's retention limits. | |
[[snapshot-retention-limits]] | ||
==== Snapshot retention limits | ||
|
||
While not a hard limit, a snapshot repository shouldn't contain more than | ||
{max-snapshot-count} snapshots at a time. This ensures the repository's metadata | ||
doesn't grow to a size that may destabilize the master node. We recommend you | ||
set up your {slm-init} policy's retention rules to enforce this limit. | ||
We recommend you include retention rules in your {slm-init} policy to delete | ||
snapshots you no longer need. | ||
|
||
A snapshot repository can safely scale to thousands of snapshots. However, to | ||
manage its metadata, a large repository requires more memory and disk space on | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "disk space" is not true, sorry that was my unfortunate wording above. It's really just memory that's the limiting factor here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the correction. |
||
the master node. Retention rules ensure a repository's metadata doesn't grow to | ||
a size that may destabilize the master node. | ||
|
||
[discrete] | ||
[[manually-create-snapshot]] | ||
|
@@ -536,9 +539,7 @@ from a previous week or month. | |
To fix this, you can create multiple {slm-init} policies with the same snapshot | ||
repository that run on different schedules. Since a policy's retention rules | ||
only apply to its snapshots, a policy won't delete a snapshot created by another | ||
policy. However, you'll need to ensure the total number of snapshots in the | ||
repository doesn't exceed the <<snapshot-retention-limits,{max-snapshot-count} | ||
snapshot soft limit>>. | ||
policy. | ||
|
||
For example, the following {slm-init} policy takes hourly snapshots with a | ||
maximum of 24 snapshots. The policy keeps its snapshots for one day. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@original-brownbear Let me know if we want to offer any guidance to users for sizing their snapshot repositories. I can also use this information to update the policy UI copy in Kibana.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say we shouldn't give a hard number here these days probably. Maybe we should just point out that the repository does scale to thousands of snapshots, but that larger repositories do require more memory/a larger master. Just to make it clear that people should have retention setup in SLM and can't outright run a snapshot every 5 minutes for the next 10 years without ever deleting anything?
As long as we at least make it clear that there are limits and master node costs here and that deletes are necessary eventually we're good I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I re-added some guidance based on your comment with 521dbb8. Let me know what you think.
If that looks good to you, I'll merge this and get a fix open for the Kibana UI.