-
Notifications
You must be signed in to change notification settings - Fork 24
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
Measure used disk storage #6685
Conversation
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 for the clarifications, LGTM 👍
@philippotto could you have a quick look at the latest commit cd80b77 ? I adapted the front-end to use the new measured value |
Looks good to me 👍 |
webKnossos now measures the storage used by the datasets of the organizations.
New config options
datastore.reportUsedStorage.enabled
andwebKnossos.fetchUsedStorage.interval
.Note that the organization is re-scanned regularly, but dataset upload + delete trigger a refresh of said dataset directly.
Datastores report that they have reportUsedStorage.enabled to webKnossos, which then stores that info in the postgres datastores table.
Load distribution strategy assumes that measuring a single organization isn’t that huge an operation (optimized for multi-orga setup).
Steps to test:
Issues: