Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Status

Current state: VotingAccepted

Vote thread: https://lists.apache.org/thread/kyrvq8ps35d83xco9xr4j9m0qx794t7t

...

NameTypeDescription
kafka.controller:type=ControllerEventManager,name=ThreadIdleRatioAvgIdleRatioTimeRatioThe idle ratio measures the proportion of time the controller thread is not actively processing an event using the existing metric org.apache.kafka.raft.internals.TimeRatio which tracks idleness over the actual measurement interval.

The metric is calculated using the following formula and value ranges from 0 to 1, where 0 indicates the controller thread is constantly processing without breaks, 1 signifies the controller spends most of its time waiting for work:


                      controller idle ratio = idle_time/(active_time+idle_time)


The components are defined as follows:

  • active_time: This is the total time the controller thread actively spends processing events or performing computation work rather than waiting for callbacks or external operations
  • idle_time: This is the total time the controller thread is not executing any instructions while waiting for either new events to appear in the queue or Raft callback. 

...