You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/03/25 17:43:31 UTC

[GitHub] [kafka] wenbingshen opened a new pull request #10403: KAFKA-12556: Add --under-preferred-replica-partitions option to describe topics command

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:
users@infra.apache.org



[GitHub] [kafka] dajac commented on pull request #10403: KAFKA-12556: Add --under-preferred-replica-partitions option to describe topics command

Posted by GitBox <gi...@apache.org>.
dajac commented on pull request #10403:
URL: https://github.com/apache/kafka/pull/10403#issuecomment-807267385


   @wenbingshen Thanks for the PR. We need a KIP for adding a new flag to a command line tool as it is considered as part of the public API.


-- 
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:
users@infra.apache.org



[GitHub] [kafka] wenbingshen commented on pull request #10403: KAFKA-12556: Add --under-preferred-replica-partitions option to describe topics command

Posted by GitBox <gi...@apache.org>.
wenbingshen commented on pull request #10403:
URL: https://github.com/apache/kafka/pull/10403#issuecomment-807935845


   > @wenbingshen Thanks for the PR. We need a KIP for adding a new flag to a command line tool as it is considered as part of the public API.
   
   
   Thank you for your comment, I will create a KIP for this. :)


-- 
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:
users@infra.apache.org



[GitHub] [kafka] wenbingshen commented on pull request #10403: KAFKA-12556: Add --under-preferred-replica-partitions option to describe topics command

Posted by GitBox <gi...@apache.org>.
wenbingshen commented on pull request #10403:
URL: https://github.com/apache/kafka/pull/10403#issuecomment-807168427


   @chia7712 Can you take a look at this pr?Thanks. :)


-- 
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:
users@infra.apache.org