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

piraeus-server: deal with large backups #196

Merged
merged 1 commit into from
Nov 4, 2024
Merged

piraeus-server: deal with large backups #196

merged 1 commit into from
Nov 4, 2024

Conversation

WanzenBug
Copy link
Member

There is a limit of around 1MB per resource in kubernetes. Big clusters might need to make DB backups that are larger than that. We improve our current solution in two ways:

  • Provide a meaningful output should the run-migration not succeed. Instead of crashing by default, print what needs to be done to stderr and wait. Waiting can be skipped with an environment variable.
  • Try to split the backup into smaller chunks, that can be reassembled on restore.

Copy link
Member

@rck rck left a comment

Choose a reason for hiding this comment

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

LGTM, minor comment, but feel free to merge as is. do we want set -eu?

dockerfiles/piraeus-server/entry.sh Outdated Show resolved Hide resolved
There is a limit of around 1MB per resource in kubernetes. Big clusters might
need to make DB backups that are larger than that. We improve our current
solution in two ways:

* Provide a meaningful output should the run-migration not succeed. Instead
  of crashing by default, print what needs to be done to stderr and wait.
  Waiting can be skipped with an environment variable.
* Try to split the backup into smaller chunks, that can be reassembled on
  restore.

Signed-off-by: Moritz Wanzenböck <[email protected]>
Copy link
Member

@rck rck left a comment

Choose a reason for hiding this comment

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

LGTM

@rck rck merged commit c1b2638 into master Nov 4, 2024
2 checks passed
@rck rck deleted the improved-backup branch November 4, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants