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

Take a last backup before termination #29

Open
majst01 opened this issue Oct 2, 2020 · 2 comments
Open

Take a last backup before termination #29

majst01 opened this issue Oct 2, 2020 · 2 comments

Comments

@majst01
Copy link
Contributor

majst01 commented Oct 2, 2020

currently only during backup-intervall a backup is taken and stored. But if the pod is terminated there is a time gap between the last backup and the last commited transaction of the database. If then the disk dies, these last commits are lost.

At least in the case of normal pod termination we already get the termination signal. With this there is a chance to do one additional backup.

Downside: termination may take longer.

@Gerrit91
Copy link
Contributor

Gerrit91 commented Oct 2, 2020

Idea makes sense, but I would also see this as an additional feature, which can be turned on or off.

Reasoning: We have a special use case, in which we want two databases in the metal-stack (metal-db and ipam-db) to be in sync. This is why we take backups for those two databases with an identical time schedule. Your proposal works a bit against these "synchronous backup schedules".

@majst01
Copy link
Contributor Author

majst01 commented Oct 2, 2020

Yes sure, must be configurable

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

No branches or pull requests

2 participants