Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Resolved
-
0.5.0
-
None
Description
In some applications, some servers in a raft group are more preferable to be the leader than the other servers. For example, a server is colocated with other resources so that having the server as the leader is more efficient than the other servers.
In this JIRA, we propose adding priority to each server so that the higher priority server(s) will always win the leader election when they are available.
Attachments
Attachments
Issue Links
1.
|
Change RaftPeer and proto to support priority | Resolved | runzhiwang |
|
||||||||
2.
|
Change leader election to add priority consideration | Resolved | runzhiwang |
|
||||||||
3.
|
Change leader heartbeat to yield to a higher priority leader. | Resolved | runzhiwang |
|
||||||||
4.
|
Change client to try the servers according to the priority. | Resolved | runzhiwang |
|
||||||||
5.
|
Fix can not elect leader when higher priority server crash | Resolved | runzhiwang |
|
||||||||
6.
|
Support change priority dynamically | Resolved | runzhiwang |
|
||||||||
7.
|
Fix leader election with priority too slow | Open | runzhiwang |