-
Notifications
You must be signed in to change notification settings - Fork 1
Next #8
Draft
donald
wants to merge
24
commits into
master
Choose a base branch
from
next
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We now have seperate FULL and INCREMENTAL backup jobs. Also we have the new REFRESH ('%') backup job. The 4/5 hours time limit was to low anyway, so implement new time limits: INCREMENTAL : 10 hours EXPIRE job : 10 hours FULL : 3 days BALANCE : 3 days REFRESH : 3 days
Only dedup with jobid with same id, not with jobs with different jobid but same name or same distmaster family. While there is a win in used space for the extra deduplications, there is also a reason to keep the additional redundancy, because data can be corrupted when a project is moved or during dist. Additionally, the multiple database queries significantly slow down the "search for the next job to do" loop. This is more relevant for the search for FULL backups, becase ypically there are no FULL backups to be done during normal operation and the process has to walk over all jobs.
Add code to override the sqlite database name via environment variable. This can help in development, so that code can be tested against a copy of a real database as an unpriviledged user while avoiding the risk to block the running server or corrupte the backup data.
FULL backups want only jobs without existing stat records. Usually, there will be none. Select jobs without stat records by `LEFT JOIN stat ON stat_job_id = job_id WHERE stat_job_id IS NULL`. This reduced the time for test runs to discover that there are no FULL jobs to do in an actual database from 2.02 seconds to 0.06 seconds.
Space after comma, spaces around other operators, remove some comments
When we move a run from one volume to another and dedup on the target volume, use the smaller (older) generation number of the two source runs which are joined, because both can contribute data. Remove "review" fuse for cmd_move.
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.