Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RIP-44] Support DLedger Controller #4330

Closed
12 tasks done
hzh0425 opened this issue May 16, 2022 · 2 comments
Closed
12 tasks done

[RIP-44] Support DLedger Controller #4330

hzh0425 opened this issue May 16, 2022 · 2 comments
Labels
module/ha high availably related soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on stale

Comments

@hzh0425
Copy link
Member

hzh0425 commented May 16, 2022

Background

After the release of RocketMQ 4.5.0, the DLedger mode (raft) was introduced. The raft commitlog under this architecture is used to replace the original commitlog so that it has the ability to failover. However, there are some disadvantages going with this architecture due to the raft capability on replication, including:

  1. To have failover ability, the number of replicas in the broker group must be 3 or more

  2. Acks from replicas need to strictly follow the majority rule of the Raft protocol, that is, 3-replica architecture requires acks from 2 replicas to return, and 5-replica architecture requires acks from 3 to return

  3. Since the store repository relies on OpenMessaging DLedger in DLedger mode, Native storage and replication capabilities of RocketMQ (such as transientStorePool and zero-copy capabilities) cannot be reused, and maintenance becomes difficult as well.

To handle those mentioned problems, I would like to start an RIP-44 Support DLedger Controller. With this improvement, DLedger (Raft) capability will be abstracted onto the upper layer, becoming an optional and loosely coupled coordination component named DLedger Controller.

After the deployment of DLedger Controller, the master-slave architecture will also equip with failover capability. The DLedger Controller can optionally be embedded into the NameServer (the NameServer itself remains stateless and cannot provide electoral capabilities when the majority is down), or it can be deployed independently.

DLedger controller is an optional component that does not change the previous operation and maintenance mode. Compared with other components, its downtime will not affect online services. In addition, RIP-44 unifies the storage and replication of RocketMQ, resulting in lower maintenance costs and faster development iterations. In terms of compatibility, the master-slave architecture can upgrade without compatibility problems.

I've already done the work with @RongtongJin . Our proposals are provided at the links below:

https://docs.google.com/document/d/1tSJkor_3Js4NBaVA0UENGyM8Mh0SrRMXszRyI91hjJ8/edit?usp=sharing

Chinese version:

https://shimo.im/docs/N2A1Mz9QZltQZoAD/

The following prs are the main jobs:

The following prs are for optimization and adjustment

Document

Test design

RIP42

https://shimo.im/docs/N2A1Mz9QZltQZoAD

@RongtongJin RongtongJin added soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on module/ha high availably related labels May 16, 2022
@RongtongJin RongtongJin changed the title Tracking issue: Let rocketmq support switching master-slave. [RIP-44] Support DLedger Controller Jul 1, 2022
@github-actions
Copy link

This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 10, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 3 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/ha high availably related soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on stale
Projects
None yet
Development

No branches or pull requests

2 participants