Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-979 Ratis streaming
  3. RATIS-1209

Compare the performance between DataStreamApi and AsyncApi

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • examples, Streaming
    • None

    Description

      Not sure what happened. If 3 servers are on different machines, DataStreamApi with type DirectByteBuffer seems slower than AsyncApi. If 3 servers are on same machine, DataStreamApi with type DirectByteBuffer is better than AsyncApi.
      DataStreamApi command:
      `${BIN}/client.sh filestore datastream --size 100000000 --numFiles 10 --bufferSize 4000000 --type DirectByteBuffer --peers ${PEERS}`
      AsyncApi command:
      `${BIN}/client.sh filestore loadgen --size 100000000 --numFiles 10 --bufferSize 4000000 --peers ${PEERS}`

      Attachments

        1. screenshot-4.png
          60 kB
          runzhiwang
        2. screenshot-3.png
          50 kB
          runzhiwang
        3. screenshot-2.png
          57 kB
          runzhiwang
        4. screenshot-1.png
          93 kB
          runzhiwang
        5. primary.svg
          606 kB
          runzhiwang
        6. peer.svg
          328 kB
          runzhiwang
        7. client.svg
          116 kB
          runzhiwang

        Activity

          People

            szetszwo Tsz-wo Sze
            yjxxtd runzhiwang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h