[ 
https://issues.apache.org/jira/browse/RATIS-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17183690#comment-17183690
 ] 

runzhiwang edited comment on RATIS-967 at 8/25/20, 2:49 AM:
------------------------------------------------------------

[~szetszwo] I have finished the code of ratis, and make a test when ozone has 3 
datanodes, and leader's distribution is balance, you can find the "Leader 
Count" metric in the following image. I will submit the PR.

1. When 3 datanodes have 9 pipelines, each datanode has 3 leaders.
 !screenshot-1.png! 

2. When 3 datanodes have 10 pipelines,  datanode has 4, 3, 3 leaders.
 !screenshot-2.png! 


was (Author: yjxxtd):
[~szetszwo] I have finished the code of ratis, and make a test when ozone has 3 
datanodes, and leader's distribution is balance. I will submit the PR.

1. When 3 datanodes have 9 pipelines, each datanode has 3 leaders.
 !screenshot-1.png! 

2. When 3 datanodes have 10 pipelines,  datanode has 4, 3, 3 leaders.
 !screenshot-2.png! 

> 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
>         Attachments: screenshot-1.png, screenshot-2.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to