This content has been marked as final. Show 4 replies
The cleaner byte interval is just a wakeup interval. When it wakes up, it determines whether cleaning is needed (based on current log utilization) and doesn't do anything if utilization is above the configured threshold. The cleaner should be woken up often enough ensure that cleaning happens, but there's very little cost to waking it up more often than necessary.
Does that answer your question?
Thanks for the quick answer.
I still need some clarification I think. I think 30MB cleaner interval would do less actual cleaning writes/reads than 15MB (60MB log size, 50% util and assume each file is at 50% util for simplicity), for the following reason
Assume we start at 50% util,
With 30MB cleaner interval : We read one file and log half of it (60MB read, 30MB written) , for 30MB worth of actual writes
With 15MB cleaner interval : We read one file and log half of it (60MB read, 30MB written) , for 15MB worth of actual writes.
We would need two cleaner runs with 15MB cleaner interval for 30MB worth of actual writes, doubling the IO. The idea is basically adjust the cleaner interval to write/read least amount of data during the cleaner run.
I am not asking for an optimal config. just making sure my understanding is right?
[In both cases, of course the next cleaner run will be a cheap no-op as you mentioned. Thanks for clarifying this]