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

Implement storage statistic printing on console #1130

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

ataffanel
Copy link
Member

Until now the storage subsystem was quite opaque in the sense that it is not possible to inspect its state and how much space is being used.

This PR implements a way to print storage statistics on the console. The printing is controled by setting 1 the parameter "system.storageStats". The printed values looks like:

STORAGE: Used storage: 46 item stored, 1394 Bytes/7168 Bytes (19%)
STORAGE: Fragmentation: 60%
STORAGE: Efficiency: Data: 387 Bytes (5%), Keys: 869 Bytes (12%), Metadata: 138 Bytes (1%)

@ataffanel ataffanel merged commit ed4b826 into master Oct 6, 2022
@ataffanel ataffanel deleted the ataffanel/dev-storage-stats branch October 6, 2022 16:08
@krichardsson krichardsson added this to the 2022.12 milestone Dec 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants