-
Notifications
You must be signed in to change notification settings - Fork 244
[Feature🚀] Implement Controller Command: Re-elect Master (electMaster) #5622
Copy link
Copy link
Open
Labels
Difficulty level/ModerateModerate difficult ISSUEModerate difficult ISSUEfeature🚀Suggest an idea for this project.Suggest an idea for this project.help wantedExtra attention is neededExtra attention is needed
Description
Feature Description
Implement the Controller command electMaster for rocketmq-rust project to manually trigger Broker Master election and promote a specified Broker replica to Master.
This command corresponds to ReElectMasterSubCommand in Apache RocketMQ Java version.
Problem/Motivation
The current rocketmq-rust project lacks Broker Master manual election tools, making it impossible to quickly restore service in the following scenarios:
- Failure Recovery: Cannot manually trigger election after current Master node failure
- Master-Slave Switchover: Cannot manually promote specified Slave to Master
- Operational Adjustments: Cannot manually adjust Master node based on load
- High Availability Testing: Cannot verify master-slave switchover functionality
Use Cases:
- Manually trigger election after Master node failure
- Specify a particular Broker ID as new Master
- Load balancing adjustments
- Disaster recovery drills
Java Source Reference:
https://github.com/apache/rocketmq/blob/develop/tools/src/main/java/org/apache/rocketmq/tools/command/controller/ReElectMasterSubCommand.java
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Difficulty level/ModerateModerate difficult ISSUEModerate difficult ISSUEfeature🚀Suggest an idea for this project.Suggest an idea for this project.help wantedExtra attention is neededExtra attention is needed