[
https://issues.apache.org/jira/browse/RATIS-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17297344#comment-17297344
]
Tsz-wo Sze commented on RATIS-1312:
-----------------------------------
[~yjxxtd], just found that Streaming has limited the num threads to 100
{code}
//org.apache.ratis.examples.filestore.cli.Client
private static final int MAX_THREADS_NUM = 100;
public int getNumThread() {
return numFiles < MAX_THREADS_NUM ? numFiles : MAX_THREADS_NUM;
}
{code}
but HdfsPerformance is using 1000:
https://github.com/runzhiwang/HdfsPerformance/blob/a444e24c7c23ef67a53780a736ddf3d3a60b7a5a/src/main/java/org/apache/HdfsPerformance.java#L156
We should use the same number of threads.
> 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, screenshot-1.png, streaming.svg
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)