runzhiwang opened a new pull request #325: URL: https://github.com/apache/incubator-ratis/pull/325
## What changes were proposed in this pull request? Change the FileStore CLI to use Streaming ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/RATIS-1186 ## How was this patch tested? 1. ``` BIN=ratis-examples/src/main/bin PEERS=n0:127.0.0.1:6000:7000,n1:127.0.0.1:6001:7001,n2:127.0.0.1:6002:7002 ID=n0; ${BIN}/server.sh filestore server --id ${ID} --storage /tmp/ratis/${ID} --peers ${PEERS} ID=n1; ${BIN}/server.sh filestore server --id ${ID} --storage /tmp/ratis/${ID} --peers ${PEERS} ID=n2; ${BIN}/server.sh filestore server --id ${ID} --storage /tmp/ratis/${ID} --peers ${PEERS} ``` 2. DataStreamApi ``` ${BIN}/client.sh filestore datastream --size 100000000 --numFiles 10 --bufferSize 1000000 --type DirectByteBuffer --peers ${PEERS} ${BIN}/client.sh filestore datastream --size 100000000 --numFiles 10 --bufferSize 1000000 --type MappedByteBuffer --peers ${PEERS} ${BIN}/client.sh filestore datastream --size 100000000 --numFiles 10 --bufferSize 1000000 --type transferTo --peers ${PEERS} ``` AsyncApi `${BIN}/client.sh filestore loadgen --size 100000000 --numFiles 10 --bufferSize 4096 --peers ${PEERS}` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
