[
https://issues.apache.org/jira/browse/RATIS-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155319#comment-17155319
]
runzhiwang edited comment on RATIS-800 at 7/10/20, 10:29 AM:
-------------------------------------------------------------
[~ljain] Thanks for review.
bq. Balancing the leader in an active ratis ring might be difficult to achieve.
For a candidate to be elected as leader its term and index should be >=
follower's term index. Even if we trigger an election it is not guaranteed that
the datanode will become leader.
We can first focus on balance leader. We can do it as raft paper explained.
If leadership transfer does not complete after about an election timeout, the
prior leader aborts the transfer and still act as the leader, and resumes
accepting client requests.
!image-2020-07-10-18-27-01-890.png!
was (Author: yjxxtd):
[~ljain] Thanks for review.
bq. Balancing the leader in an active ratis ring might be difficult to achieve.
For a candidate to be elected as leader its term and index should be >=
follower's term index. Even if we trigger an election it is not guaranteed that
the datanode will become leader.
We can first focus on balance leader. This has been explained in raft paper as
following. If leadership transfer does not complete after about an election
timeout, the prior leader aborts the transfer and still act as the leader, and
resumes accepting client requests.
!image-2020-07-10-18-27-01-890.png!
> Make Ratis consume recommended leader host from the pipeline creator
> --------------------------------------------------------------------
>
> Key: RATIS-800
> URL: https://issues.apache.org/jira/browse/RATIS-800
> Project: Ratis
> Issue Type: Sub-task
> Reporter: Li Cheng
> Assignee: runzhiwang
> Priority: Critical
> Attachments: image-2020-07-10-18-27-01-890.png
>
>
> Start a Jira for suggested leader sematics. It would help Ratis performance
> if it can consume the leader host which its upstream user like Ozone
> recommends. User can choose the leader host based on load balance and rack
> awareness.Â
--
This message was sent by Atlassian Jira
(v8.3.4#803005)