Last active
August 16, 2020 22:17
-
-
Save robskillington/8cc358e9a650e157db1aad3cf25a2eeb to your computer and use it in GitHub Desktop.
M3DB disk size
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
N=$(du -d 0 /var/lib/m3db | cut -f 1 -d $'\t'); echo "$N kb, all data" | |
N=0; for f in $(find /var/lib/m3db | fgrep "docdata.db"); do i=$(du $f | cut -f 1 -d $'\t'); N=$(expr $N + $i); done; echo "$N kb, index docdata" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment