Cczzzz opened a new issue #3858:
URL: https://github.com/apache/rocketmq/issues/3858
The purpose is to solve the broker restart update under the sequential
message.The master can actively downgrade to slave after receiving the
command.And after the new master is elected, and the client perceives the new
master,forward messages to the new master。
只关注于dledger 模式,master-slave 还不支持角色切换
目的是解决顺序消息生产的问题下broker 重启更新的问题。如果要重启broker
总要不可避免出现发送失败,对顺序消息的生产者很不友好,我发现时间主要由 等待逻辑队列的构建和客户端轮训的时间,最坏可能大于1分钟。
解决方案:
1.broker 接受到命令后 进行dledger 的重新选举,(短暂不可用直到raft 日志相同)
2.raft 协议选举完成感知新leader
3.之后直到生产者客户端感知之前,客户端依然会发生消息到原master
4.此时将消息转发到新leader
这样对于顺序消息的发送者的不可用时间只有raft 的选举时间
--
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]