Enable quick compaction-checker #1283
xiaobiaozhao
started this conversation in
General
Replies: 1 comment
-
Since 2 days is a significantly long time, introducing that interval as a setting in the configuration file makes sense to me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In some case,we need save a lot of data with short ttl, eg ttl = 3600s.
In current kvrocks, it takes at least two days for compation to take place, which can cause disk space not to be released quickly. I think kvrocks needs to come up with a configuration to figure out how long compation will take.
New a conf item
compaction-checker-force-compact-seconds
https://github.com/apache/incubator-kvrocks/blob/c439f3af9d5c7ccb97ff4c7bdab088287acd73cc/src/storage/compaction_checker.cc#L58And new a conf item
compaction-checker-interval-seconds
https://github.com/apache/incubator-kvrocks/blob/c439f3af9d5c7ccb97ff4c7bdab088287acd73cc/src/server/server.cc#L184
Beta Was this translation helpful? Give feedback.
All reactions