You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Dong Lin (JIRA)" <ji...@apache.org> on 2018/07/20 06:52:00 UTC

[jira] [Resolved] (KAFKA-7098) Improve accuracy of the log cleaner throttle rate

     [ https://issues.apache.org/jira/browse/KAFKA-7098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dong Lin resolved KAFKA-7098.
-----------------------------
    Resolution: Fixed

> 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: Zhanxiang (Patrick) Huang
>            Priority: Major
>
> 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)