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

when MetaService leader down, how long does it take to elect the new leader? #5434

Closed
lszChain opened this issue Mar 24, 2023 · 6 comments
Closed
Labels
type/question Type: question about the product

Comments

@lszChain
Copy link

No description provided.

@Sophie-Xie Sophie-Xie added the type/question Type: question about the product label Mar 24, 2023
@QingZ11
Copy link
Contributor

QingZ11 commented Mar 24, 2023

你们服务数量是怎么样的?选举的话,遵循的是过半数选举成功,如果你挂掉一台,是偶数的话,也许选举是不会成功的。

@Sophie-Xie Sophie-Xie changed the title MetaService leader挂掉,重新选举leader最大时长是多少? when MetaService leader down, how long does it take to elect the new leader? Mar 24, 2023
@lszChain
Copy link
Author

lszChain commented Mar 24, 2023

你们服务数量是怎么样的?选举的话,随从的是过半数选举成功的,如果你挂掉一个台,是偶数的话,也许选举是不会成功的。

我们产品默认是配置3台MetaService,可以正常选举leader的情况下,我们想知道重新选举leader的时间会不会导致图查询业务中断时间过长,所以我们想要知道最大成功选举leader时长是多少。另外如果有leader重新选则leader的原理材料就更好了

@QingZ11
Copy link
Contributor

QingZ11 commented Mar 24, 2023

选举原理你可以参考下这篇知乎的文章,大家的原理都是类似的:https://zhuanlan.zhihu.com/p/91288179

NebulaGraph 里面的选举时间和 raft_heartbeat_interval_secs 这个参数有关。

@lszChain
Copy link
Author

选举原理你可以参考下这篇知乎的文章,大家的原理都是类似的:https://zhuanlan.zhihu.com/p/91288179

NebulaGraph 里面的选举时间和 raft_heartbeat_interval_secs 这个参数有关。

raft_heartbeat_interval_secs我理解是leader发起的心跳间隔时间,election timeout时间是在哪里配置的呢

@pengweisong
Copy link
Contributor

pengweisong commented Mar 30, 2023

raft_heartbeat_interval_secs我理解是leader发起的心跳间隔时间,election timeout时间是在哪里配置的呢

由于历史命名原因,选举超时其实就是raft_heartbeat_interval_secs ,心跳间隔实际上是该值的三分之一左右:https://github.com/vesoft-inc/nebula/blob/master/src/kvstore/raftex/RaftPart.cpp#L1410

@QingZ11
Copy link
Contributor

QingZ11 commented May 5, 2023

@lszChain 这个 issue 超过一个月没有更新内容了,这边先行关闭了。如果你有任何更新的内容,可以再打开这个 issue 哈。

谢谢你的反馈 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

4 participants