Quota follow up: Buddy group accounting mode, refactoring, logging - #78
Open
rustybee42 wants to merge 5 commits into
Open
Quota follow up: Buddy group accounting mode, refactoring, logging#78rustybee42 wants to merge 5 commits into
rustybee42 wants to merge 5 commits into
Conversation
rustybee42
force-pushed
the
rb/quota-followup
branch
from
August 14, 2026 07:30
df65b89 to
ac22609
Compare
* Quota: Log information after the operations are completed with more information at info level, remove the not so useful initial debug logs * Promote and improve some other state logging
Required to get newest the newest sqlite, which allows adding constraints using ALTER TABLE
Before, targets in buddy groups would count double towards the limits as quota would just use the data from both. Now, only the primary target is taken into account by default. This has the consequence that potentially unmirrored data present on the secondary will not be counted towards the quota anymore. And, if there is a switchover, the numbers might suddenly change. We assume though, that most customers have exclusive mirrored targets. To get the old behavior, the accounting mode is stored with the buddy groups and can be set via ctl. On updating management (from 8.x), it will use the old behavior, adding new groups uses the new behavior. Upgrading from v7 uses the new behavior as this usually makes more sense and is already a breaking change. * Also add modify_buddy_group() handler to change the accounting mode and adapt the create_buddy_group() and get_buddy_groups() handlers * Refactor the get_buddy_groups() big sql query, using string for selecting columns
Test the accounting modes, making sure they work as expected + more.
rustybee42
force-pushed
the
rb/quota-followup
branch
from
August 14, 2026 10:54
ac22609 to
12aeebb
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See commits.
Depends on ThinkParQ/protobuf#78 (TODO: Update protobuf ref)
Related to https://github.com/ThinkParQ/beegfs-core/issues/4794