[
https://issues.apache.org/jira/browse/RATIS-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17176132#comment-17176132
]
runzhiwang edited comment on RATIS-967 at 8/12/20, 9:30 AM:
------------------------------------------------------------
[~szetszwo] Sorry, I have another question.
{quote}Indeed, the logic is first comparing the log and then the
priority.{quote}
Even though one server has a high priority, but it's probability to win the
election is still low. For example, the priority of s1, s2, s3 is 4, 5, 6. If
s1 and s2 start election before s3, s1 or s2 is more likely win the election,
rather than s3. So I'm not sure whether compare priority can help a lot. Maybe
the following two tasks can achieve our goal.
1.Change proto and RaftConfiguration to support priority
2.Change leader heartbeat to yield to a higher priority leader
was (Author: yjxxtd):
[~szetszwo] Sorry, I have another question.
{quote}Indeed, the logic is first comparing the log and then the
priority.{quote}
Even though one server has a high priority, but it's probability to win the
election is still low. For example, the priority of s1, s2, s3 is 4, 5, 6. If
s1 and s2 start election before s3, s1 or s2 is more likely win the election,
rather than s3. So I'm not sure whether compare priority can help a lot.
> Support priority when elect leader
> ----------------------------------
>
> Key: RATIS-967
> URL: https://issues.apache.org/jira/browse/RATIS-967
> Project: Ratis
> Issue Type: Task
> Components: raft-group
> Affects Versions: 0.5.0
> Reporter: maobaolong
> Assignee: runzhiwang
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)