Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1606

The parameter bufferSize in the filestore example affects the sizes of Raft logs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.0
    • None
    • examples
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            wenlj Lijie Wen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: