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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]