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/12 08:06:19 UTC

[GitHub] [rocketmq] TheR1sing3un opened a new issue, #4813: Optimize the elect policy in HAControler mode

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

   1. Now we just randomly(the first one in syncStateSet) elect a master when the controller proposes an ElectMaster event.
   2. We can design an interface to elect the master, and we can execute our own strategy like a plugin.
   3. We provide a default elect policy to elect master.
       - We add more inforamtion in haertbeat packet, such as maxOffset, epoch and confitmOffset.
       - We elect a master in syncStateSet first, and we prefer the candidate with higher epoch or higher maxOffset(when the epoch is equal).
       - If the enableElectUnCleanMaster == true, we can elect a master in all replicas when we elect nothing from syncStateSet. We elect a master(also with higher epoch and maxOffset) from all replicas.
   
   


-- 
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 #4813: Optimize the elect policy in HAControler mode

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

   Merged


-- 
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 closed issue #4813: Optimize the elect policy in HAControler mode

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #4813: Optimize the elect policy in HAControler mode
URL: https://github.com/apache/rocketmq/issues/4813


-- 
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