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

braft 节点如何高性能判断是否是 leader 且在 lease 内? #442

Open
ergesun opened this issue Mar 12, 2024 · 0 comments
Open

Comments

@ergesun
Copy link

ergesun commented Mar 12, 2024

我发现 is_leader_lease_valid api 应该是一个正确可用的方式做这件事,但性能上其内部会加互斥锁,对于高 OPS 场景这么做不太好,有什么其他的推荐的好办法?

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

1 participant