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

Tsz-wo Sze commented on RATIS-1606:
-----------------------------------

[~wenlj], thanks a lot for trying out.

bq. ... As bufferSize increases from 1024 to 1024*1024, the file size of each 
closed segmented raft log becomes smaller and smaller. ...

Could you post some outputs?  I can verify it.

> The parameter bufferSize in the filestore example affects the sizes of Raft 
> logs
> --------------------------------------------------------------------------------
>
>                 Key: RATIS-1606
>                 URL: https://issues.apache.org/jira/browse/RATIS-1606
>             Project: Ratis
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.3.0
>            Reporter: Lijie Wen
>            Priority: Minor
>
> Dear all,
> I downloaded the latest version of ratis and run the filestore example using 
> the default parameters for the three servers. I tried different bufferSize 
> parameter values for the client. As bufferSize increases from 1024 to 
> 1024*1024, the file size of each closed segmented raft log becomes smaller 
> and smaller. In my thought, the file size of each closed segmented raft log 
> should be equal to 8M, am I right? Why does this phenomenon happen?
>  
> The run command for the client is like the following:
> BIN=ratis-examples/src/main/bin
> PEERS=n0:127.0.0.1:6000,n1:127.0.0.1:6001,n2:127.0.0.1:6002
> ${BIN}/client.sh filestore loadgen --size 2097152 --numFiles 500 --storage 
> /tmp/ratis/loadgen --numClients 6 --peers ${PEERS} --bufferSize 1024



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to