[ 
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, 7:26 AM:
------------------------------------------------------------

[~szetszwo] I have finished the code of ratis, and make a test when ozone has 
72 datanodes, each datanode participate in 6 pipelines, so there are total 144 
pipelines. The result is each datanode has 2 leaders, there is no exception, so 
we achieve the balance of leader distribution. you can find the "Leader Count" 
metric in the following image. I will submit the PR.

 !image-2020-08-25-15-26-40-478.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, you can find the "Leader 
Count" metric in the following image. I will submit the PR.

*{color:#DE350B}1. When 3 datanodes have 9 pipelines, each datanode has 3 
leaders.{color}*
 !screenshot-1.png! 



*{color:#DE350B}2. When 3 datanodes have 10 pipelines,  datanode has 4, 3, 3 
leaders.{color}*
 !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: image-2020-08-25-15-26-40-478.png, 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