jojochuang opened a new pull request, #8029: URL: https://github.com/apache/ozone/pull/8029
## What changes were proposed in this pull request? HDDS-12518. Compact RocksDB after consecutive deletions * Keep a counter for each OM RocksDB column family. Every delete increments the counter. * added a background service CompactionService to periodically (default 5 minutes) check if a column family has accumulated 10,000 deletes, and schedule a full compaction if it does. * Using this heuristic, I was able to improve the deletion of a large directory from 20k directories per hour to 400k per hour on my machine. * The average rocksdb seek time managed to maintain below 2ms. (Without compactions, average db seek time would grow towards 20ms after several hours) * I also did a proof of concept to simply compact over and over again, in which cause it could increase to 1 million deletions per hour. * But that would be too intense if there are foreground traffic at the same time. So a less frequent approach is picked. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-12518 ## How was this patch tested? * New unit tests. * Deployed to a dev cluster to evaluate the performance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
