-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use deleteFilesInRanges instead of deleteRange in RocksDBLogStorage #768
Labels
Milestone
Comments
killme2008
added a commit
that referenced
this issue
Feb 21, 2022
…RocksdbLogStorage#truncatePrefix, #768
killme2008
added a commit
that referenced
this issue
Feb 21, 2022
…RocksdbLogStorage#truncatePrefix, #768
It' also noted by TIKV https://tikv.github.io/deep-dive-tikv/key-value-engine/rocksdb.html
In RocksDBLogStorage we don't do any snapshot, so there is no consistency problem. |
升级到1.3.10后,deleteFilesInRanges 之后再 compactRange 并没有立即释放磁盘,rockdb空间磁盘占用还是居高不下 |
看看你的 rocksdb 占用是什么吧,这个只会在启用 snapshot,加快 raft log 的磁盘占用回收,对状态机的数据没有帮助的 |
在某些场景下可能会有数据残留:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to https://github.com/facebook/rocksdb/wiki/Delete-A-Range-Of-Keys
The command will remove all SST files only containing keys in the range to delete. For a large chunk, it will immediately reclaim most space, so it is a good solution to release disk pressure under writing heavy load.
The text was updated successfully, but these errors were encountered: