Dong Lin created KAFKA-7098:
-------------------------------

             Summary: Improve accuracy of the log cleaner throttle rate
                 Key: KAFKA-7098
                 URL: https://issues.apache.org/jira/browse/KAFKA-7098
             Project: Kafka
          Issue Type: Improvement
            Reporter: Dong Lin
            Assignee: Dong Lin


LogCleaner uses the Throttler class to throttler the log cleaning rate to the 
user-specified limit, i.e. log.cleaner.io.max.bytes.per.second. However, in 
Throttler.maybeThrottle(), the periodStartNs is set to the time before the 
sleep after the sleep() is called, which artificially increase the actual 
window size and under-estimate the actual log cleaning rate. This causes the 
log cleaning IO to be higher than the user-specified limit.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to