cmccabe opened a new pull request, #13438:
URL: https://github.com/apache/kafka/pull/13438

   Separate out KRaft controller metrics into two groups: metrics directly 
managed by the QuorumController, and metrics handled by an external publisher. 
This separation of concerns makes the code easier to reason about, by 
clarifying what metrics can be changed where.
   
   The external publisher, ControllerServerMetricsPublisher, handles all 
metrics which are related to the content of metadata. For example, metrics 
about number of topics or number of partitions, etc. etc. It fits into the 
MetadataLoader metadata publishing framework as another publisher.  Since 
ControllerServerMetricsPublisher operates off of a MetadataImage, we don't have 
to create (essentially) another copy of the metadata in memory, as 
ControllerMetricsManager. This reduces memory consumption. Another benefit of 
operating off of the MetadataImage is that we don't have to have special 
handling for each record type, like we do now in ControllerMetricsManager.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to