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

feat: introduce leader and standby status for meta #6752

Closed
Tracked by #5943
yezizp2012 opened this issue Dec 6, 2022 · 1 comment
Closed
Tracked by #5943

feat: introduce leader and standby status for meta #6752

yezizp2012 opened this issue Dec 6, 2022 · 1 comment
Assignees

Comments

@yezizp2012
Copy link
Member

yezizp2012 commented Dec 6, 2022

Is your feature request related to a problem? Please describe.

when Meta starts, it should participate in leader election. We need a status leader or follower for meta:

  1. leader: initializes all managers with memory cache, starts related RPC services and sub-tasks.
  2. follower: keep participating in election, should only starts a etcd member PRC service only.
@CAJan93
Copy link
Contributor

CAJan93 commented Dec 7, 2022

As discussed we I will try to implement the following features for this issue having the following limitations:

Features:

  • All nodes will participate in elections
  • Nodes know if they are leaders or followers
  • Nodes will display if they are leaders or followers in the logs
  • Followers start the health service, not initialized any managers in meta
  • Leaders start all services

Limitations:

  • Clients cannot handle meta failover
  • A meta follower will never start leader services once it becomes leader
  • No fencing mechanism
  • Followers do NOT respond to clients who the current leader is

mergify bot pushed a commit that referenced this issue Dec 16, 2022
#6752

- [x] I have written necessary rustdoc comments
- [x] I have added necessary unit tests and integration tests
- [x] All checks passed in `./risedev check` (or alias, `./risedev c`)


Approved-By: yezizp2012

Co-Authored-By: CAJan93 <[email protected]>
@CAJan93 CAJan93 closed this as completed Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants