wenbingshen opened a new pull request #10403:
URL: https://github.com/apache/kafka/pull/10403


   Whether the preferred replica is the partition leader directly affects the 
external output traffic of the broker. When the preferred replica of all 
partitions becomes the leader, the external output traffic of the broker will 
be in a balanced state. When there are a large number of partition leaders that 
are not preferred replicas, it will be destroyed this state of balance.
   
   Currently, the controller will periodically check the unbalanced ratio of 
the partition preferred replicas (if enabled) to trigger the preferred replica 
election, or manually trigger the election through the kafka-leader-election 
tool. However, if we want to know which partition leader is in the 
non-preferred replica, we need to look it up in the controller log or judge 
ourselves from the topic details list.
   
   We can add the --under-preferred-replica-partitions configuration option in 
TopicCommand describe topics to query the list of partitions in the current 
cluster that are in non-preferred replicas.
   
   ### 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.

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


Reply via email to