-
Notifications
You must be signed in to change notification settings - Fork 20
Support repo-level stats in cbbackupmgr archives #125
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
Support repo-level stats in cbbackupmgr archives #125
Conversation
dave-finlay
left a comment
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.
Hi Saf: the change is pretty straightforward and it works -- at least it did when I got the correct version of cbmstatparser built. :-)
One thing that wasn't clear to me was the distinction between "archive-level" stats and "repo-level" stats. Archive-level makes sense when these were the only places that stats could reside in an archive (under logs/stats) but now because stats may be found under any file path that matches*/logs/stats basically there are lots of "archive-level" stats.
Is "repo" a backup repository -- and is it the case that backup archives can now include backup information from multiple different backup repostories?
dave-finlay
left a comment
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.
Patch is fine and works. Interested in the response to my question - perhaps the comments could be a bit clearer. Let me know your thoughts.
|
Hi Dave, apologies, I should have added more context in my initial comment. We are moving from having all logging and stats being at the archive-level, to being at the repository-level. This is to make cbbackupmgr compatible with encryption-at-rest: since encryption information is at the repository-level, it doesn't make sense to encrypt the archive logs (which repositories' information would we use?), so we instead move the logs (and stats) down to the repository-level, and encrypt them there. So prior to this change, this is what a backup archive looked like: You can see here that the only With the move to repository-level logging, a backup archive will look like this: You can see here that
The amount of stats files will be the same, they have just been moved to the repo-level. Previously, the archive-level "logs/stats" had all of the stats for all of the repositories; now they will be placed in the appropriate repository directory. Also, we typically see very few repositories in an archive in case you are concerned about the search for the stats paths taking too long - I don't remember seeing any customer cases with >5 repositories.
Yes, repo and repository in this context both refer to backup repositories. Backup archives already contain backup repositories, and logging/stats for those repositories - we are just moving the logging from the archive-level to the repository-level. Sorry, that might have been an overkill explanation. Let me know if anything isn't clear. Thanks |
|
Hey @safianalicb -- thank you! Great explanation. Would you mind adding to the the method-level comment for I think that will help folks that come after you understand what is going on in this method. Otherwise the change is great and I will push submit. |
|
Thanks @dave-finlay, I updated the docstring for |
dave-finlay
left a comment
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 Saf!
Logging + stats in cbbackupmgr has (mostly) been moved to the repository-level. This change makes promtimer compatible with these changes.