Lijie Wen created RATIS-1606:
--------------------------------

             Summary: 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


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