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

   *More detailed description of your change*
   In traditional we only have one SocketServer and one KafkaRequestHandlerPool 
in a process. In KRaft cluster, especially in co-resident mode, there may be 
multiple SocketServer and KafkaRequestHandlerPool, so we should avoid using the 
same MetricName.
   I just added a prefix for the SocketServer and KafkaRequestHandlerPool in 
ControllerServer, to differentiate between the ones in BrokerServer.
   
   Note that I didn't change Acceptor and Processor, since their metric name 
tags contain a listenerName, which will always be different for 
ControllerServer and BrokerServer.
   
   *Summary of testing strategy (including rationale)*
   1. integration tests.
   2. Tested locally, now there are 2 KafkaRequestHandlerPool metrics in KRaft 
co-resident mode, compared to only one before.
   <img width="325" alt="image" 
src="https://user-images.githubusercontent.com/26023240/164959180-fcd7c529-1bf9-4239-a16c-b6e6c1054c0f.png";>
   
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to