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

Divij Vaidya updated KAFKA-18268:
---------------------------------
    Component/s: log cleaner

> Add metric for log cleaner thread busy percentage
> -------------------------------------------------
>
>                 Key: KAFKA-18268
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18268
>             Project: Kafka
>          Issue Type: Improvement
>          Components: log cleaner
>            Reporter: Divij Vaidya
>            Assignee: Jason Taylor
>            Priority: Major
>              Labels: kip
>
> *Background*
> The number of cleaner threads (responsible for cleaning up/compacting topics 
> which contains "compact") is configured using 
> [https://kafka.apache.org/documentation.html#brokerconfigs_log.cleaner.threads]
>  
> *Problem*
> When the number of threads is in-adequate to handle the compaction load, the 
> user will notice an increase in  `max-compaction-delay-secs` metric. However, 
> an increase in this metric does not necessarily mean that the threads are 
> overloaded. For example, this metric could be increasing due to all cleaner 
> threads getting throttled.
> *Requirement*
> We want a mechanism to determine when the cleaner threads should be 
> increased. 
> *Proposal*
> Add a thread pool utilization metric for log cleaner thread busy percentage. 
> This is similar to how to we have thread pool utilization metrics for 
> io-threads, network-threads etc. The metric will at any given point of time, 
> how many cleaner threads are actually doing cleaning ie 
> [https://github.com/apache/kafka/blob/4aee33d6ab1345243e426e05388f6fc512970e93/core/src/main/scala/kafka/log/LogCleaner.scala#L385]
>  is true.
> *Note that this Jira required a KIP since we are adding a new metric*



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to