Skip to content
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

Better constraints on time machine space allocation #761

Open
novoj opened this issue Dec 6, 2024 · 0 comments
Open

Better constraints on time machine space allocation #761

novoj opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@novoj
Copy link
Collaborator

novoj commented Dec 6, 2024

Currently we only have one configuration option for Time Machine data retention in relation to WAL:

  • long walFileSizeBytes
  • int walFileCountKept

Unfortunately this is not enough - due to the regular vacuuming process (this refers to #760) the size occupied by time travel data can grow quickly and uncontrollably. The process should allow to limit the time travel machine by a multiplier of the size of the active data. I.e. if the current set of file data occupies 1GB, we should be able to specify that the time travel machine data should not exceed 3 times the active size (i.e. 4GB in total), or we could also specify a hard limit in terms of absolute size (whichever is reached first).

This change will require a change in the logic of how we maintain and detect the first timestamp from which the time travel backup is possible (we would probably need to read catalogue headers from the bootstrap and check file existences for the data).

@novoj novoj added the enhancement New feature or request label Dec 6, 2024
@novoj novoj self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant