You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/08/17 13:18:37 UTC

[GitHub] [rocketmq] TheR1sing3un opened a new issue, #4835: Add a cli command to transfer leadership in controllers

TheR1sing3un opened a new issue, #4835:
URL: https://github.com/apache/rocketmq/issues/4835

   1.Add a cli command to transfer leadership in controllers.
   2.This command can transfer leadership when the cluster occurs the asymmetric network partition, to avoid unnecessary master replacement.(situation like this : https://github.com/apache/rocketmq/issues/4800, we can transfer the leadership)
   3.More flexible to deal the problem about controller~


-- 
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: dev-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq] RongtongJin commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218032886

   Hi @TheR1sing3un, It seems that the function of #4798  is duplicated.


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] TheR1sing3un commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
TheR1sing3un commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218099573

   ![WechatIMG16](https://user-images.githubusercontent.com/87409330/185161030-c9f04154-4471-4e8a-b2c8-c958441bc0cd.jpeg)
   backgroud: 
   - in asymmetric network partition,
   - controller-leader can connect to other controller-followers
   - all brokers can connect to two controller-follower, but can't connect to controller-leader
   - because the network in controllers is normal, so the controller-leader is always leader
   - because none of brokers can send hearbeat to controller-master, so the master can't elect any new master in brokers
   - so now the cluster lose the HA
   
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] TheR1sing3un commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
TheR1sing3un commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218042667

   > 
   
   
   
   > > Hi @TheR1sing3un, It seems that the function of #4798 is duplicated.
   > 
   > It seems like they are different, one is a command to elect master in brokers, another is a commadn to transfer leadership in controllers(controllers is a raft cluster)
   
   I want to add this command to transfer leadership from controller-master to its controller-follower(based on the leadertransfer feature in dledger)


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] RongtongJin commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218046493

   > > 
   > 
   > > > Hi @TheR1sing3un, It seems that the function of #4798 is duplicated.
   > > 
   > > 
   > > It seems like they are different, one is a command to elect master in brokers, another is a commadn to transfer leadership in controllers(controllers is a raft cluster)
   > 
   > I want to add this command to transfer leadership from controller-master to its controller-follower(based on the leadertransfer feature in dledger)
   
   Could you explain the usage scenario again? It would be better to have a example.


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] TheR1sing3un commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
TheR1sing3un commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218917115

   > > > > > 
   > > > > 
   > > > > 
   > > > > > > Hi @TheR1sing3un, It seems that the function of #4798 is duplicated.
   > > > > > 
   > > > > > 
   > > > > > It seems like they are different, one is a command to elect master in brokers, another is a commadn to transfer leadership in controllers(controllers is a raft cluster)
   > > > > 
   > > > > 
   > > > > I want to add this command to transfer leadership from controller-master to its controller-follower(based on the leadertransfer feature in dledger)
   > > > 
   > > > 
   > > > Could you explain the usage scenario again? It would be better to have an example.
   > > 
   > > In this case, this command may be helpful. ![WechatIMG16](https://user-images.githubusercontent.com/87409330/185161030-c9f04154-4471-4e8a-b2c8-c958441bc0cd.jpeg) backgroud:
   > > 
   > > * in asymmetric network partition,
   > > * controller-leader can connect to other controller-followers
   > > * all brokers can connect to two controller-follower, but can't connect to controller-leader
   > > * because the network in controllers is normal, so the controller-leader is always leader
   > > * because none of brokers can send hearbeat to controller-master, so the controller-leader can't elect any new master in brokers
   > > * so now the cluster lose the HA
   > 
   > In this case, it seems that it would be better to go offline the controller-leader directly.
   
   yep!I get it!


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] TheR1sing3un closed issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
TheR1sing3un closed issue #4835: Add a cli command to transfer leadership in controllers
URL: https://github.com/apache/rocketmq/issues/4835


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] TheR1sing3un commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
TheR1sing3un commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218037461

   > Hi @TheR1sing3un, It seems that the function of #4798 is duplicated.
   
   It seems like they are different, one is a command to elect master in brokers, another is a commadn to transfer leadership in controllers(controllers is a raft cluster)


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] TheR1sing3un commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
TheR1sing3un commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218000958

   If this issue is necessary, please assign it to me~


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] RongtongJin commented on issue #4835: Add a cli command to transfer leadership in controllers

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #4835:
URL: https://github.com/apache/rocketmq/issues/4835#issuecomment-1218914890

   > > > > 
   > > > 
   > > > 
   > > > > > Hi @TheR1sing3un, It seems that the function of #4798 is duplicated.
   > > > > 
   > > > > 
   > > > > It seems like they are different, one is a command to elect master in brokers, another is a commadn to transfer leadership in controllers(controllers is a raft cluster)
   > > > 
   > > > 
   > > > I want to add this command to transfer leadership from controller-master to its controller-follower(based on the leadertransfer feature in dledger)
   > > 
   > > 
   > > Could you explain the usage scenario again? It would be better to have an example.
   > 
   > In this case, this command may be helpful. ![WechatIMG16](https://user-images.githubusercontent.com/87409330/185161030-c9f04154-4471-4e8a-b2c8-c958441bc0cd.jpeg) backgroud:
   > 
   > * in asymmetric network partition,
   > * controller-leader can connect to other controller-followers
   > * all brokers can connect to two controller-follower, but can't connect to controller-leader
   > * because the network in controllers is normal, so the controller-leader is always leader
   > * because none of brokers can send hearbeat to controller-master, so the controller-leader can't elect any new master in brokers
   > * so now the cluster lose the HA
   
   In this case, it seems that it would be better to go offline the controller-leader directly.


-- 
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: dev-unsubscribe@rocketmq.apache.org

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