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

runzhiwang edited comment on RATIS-1312 at 3/10/21, 3:23 AM:
-------------------------------------------------------------

> FileStore uses only one RaftClient (i.e. one connection). We may change the 
> code to use one RaftClient per file. The slowness may be due to the client. 
> (It is okay since we want to test the performance of the server but not the 
> client.) 

[~szetszwo] Hi, increase client number can improve the performance, but if 
there are about 100 clients, there are OutOfDirectMemoryError. The related code:
https://github.com/runzhiwang/incubator-ratis/commit/cfc4ab07645963e5affd5be3fe962218d2e9e4c0

 !image-2021-03-10-11-23-19-681.png! 




was (Author: yjxxtd):
> FileStore uses only one RaftClient (i.e. one connection). We may change the 
> code to use one RaftClient per file. The slowness may be due to the client. 
> (It is okay since we want to test the performance of the server but not the 
> client.) 

[~szetszwo] Hi, increase client number can improve the performance, but if 
there are about 100 clients, there are OutOfDirectMemoryError. The related code:
https://github.com/runzhiwang/incubator-ratis/commit/cfc4ab07645963e5affd5be3fe962218d2e9e4c0

!screenshot-2.png! 



> Compare the performance between HDFS and DataStreamApi
> ------------------------------------------------------
>
>                 Key: RATIS-1312
>                 URL: https://issues.apache.org/jira/browse/RATIS-1312
>             Project: Ratis
>          Issue Type: Sub-task
>            Reporter: runzhiwang
>            Priority: Major
>         Attachments: hdfs.svg, image-2021-03-10-11-23-19-681.png, 
> screenshot-1.png, screenshot-2.png, streaming.svg
>
>




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

Reply via email to