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

如何解决集群中的单点压力问题 #1160

Open
lijingjing0212 opened this issue Nov 15, 2024 · 1 comment
Open

如何解决集群中的单点压力问题 #1160

lijingjing0212 opened this issue Nov 15, 2024 · 1 comment

Comments

@lijingjing0212
Copy link

Your question

在一个由3个节点组成的集群中,所有外界的写入请求,都会被集中在 leader节点上,对于一个需要频繁写入的系统来说,如何解决单个节点上的高并发问题呢?

@killme2008
Copy link
Contributor

killme2008 commented Nov 15, 2024

Multi-raft 就是解决这个问题的,拆分多个分组,当然前提是你的状态机能水平切分,如果不能,那就无解了。

multi-raft 本质上就是分片,比如三个节点,你可以搞三个分组,然后将三个分组的 leader 打散到三个节点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants