Copy $ ./bin/alluxio exec ufsTest --path s3://your_bucket/test_path
Running test: createAtomicTest...
Passed the test! time: 5205ms
Running test: createEmptyTest...
Passed the test! time: 4076ms
Running test: createNoParentTest...
Passed the test! time: 0ms
Running test: createParentTest...
Passed the test! time: 4082ms
...
Running test: listStatusS3RootTest...
Passed the test! time: 543ms
Running test: createFileLessThanOnePartTest...
Passed the test! time: 3551ms
Running test: createAndAbortMultipartFileTest...
Passed the test! time: 6227ms
Tests completed with 0 failed.
# 该示例显示 client 将启动两个线程来向 UFS 写入并读取一个 512MB 的文件,并打印测试结果
$ ./bin/alluxio exec ufsIOTest --path s3://test_bucket/test_path --io-size 512m --threads 2
{
"readSpeedStat" : {
"mTotalDurationSeconds" : 483.992,
"mTotalSizeBytes" : 1073741824,
"mMaxSpeedMbps" : 2.0614405926641703,
"mMinSpeedMbps" : 1.0578687251028942,
"mAvgSpeedMbps" : 1.5596546588835323,
"mClusterAvgSpeedMbps" : 2.1157374502057884,
"mStdDev" : 0.7096324729606261,
"className" : "alluxio.stress.worker.IOTaskSummary$SpeedStat"
},
"writeSpeedStat" : {
"mTotalDurationSeconds" : 172.136,
"mTotalSizeBytes" : 1073741824,
"mMaxSpeedMbps" : 3.5236227246137433,
"mMinSpeedMbps" : 2.974392340939722,
"mAvgSpeedMbps" : 3.2490075327767327,
"mClusterAvgSpeedMbps" : 5.948784681879444,
"mStdDev" : 0.3883645287295896,
"className" : "alluxio.stress.worker.IOTaskSummary$SpeedStat"
},
"errors" : [ ],
"baseParameters" : {
"mCluster" : false,
"mClusterLimit" : 0,
"mClusterStartDelay" : "10s",
"mJavaOpts" : [ ],
"mProfileAgent" : "",
"mBenchTimeout" : "20m",
"mId" : "local-task-0",
"mIndex" : "local-task-0",
"mDistributed" : false,
"mStartMs" : -1,
"mInProcess" : true,
"mHelp" : false
},
"points" : [ {
"mMode" : "WRITE",
"mDurationSeconds" : 145.305,
"mDataSizeBytes" : 536870912,
"className" : "alluxio.stress.worker.IOTaskResult$Point"
}, {
"mMode" : "WRITE",
"mDurationSeconds" : 172.136,
"mDataSizeBytes" : 536870912,
"className" : "alluxio.stress.worker.IOTaskResult$Point"
}, {
"mMode" : "READ",
"mDurationSeconds" : 248.37,
"mDataSizeBytes" : 536870912,
"className" : "alluxio.stress.worker.IOTaskResult$Point"
}, {
"mMode" : "READ",
"mDurationSeconds" : 483.992,
"mDataSizeBytes" : 536870912,
"className" : "alluxio.stress.worker.IOTaskResult$Point"
} ],
"parameters" : {
"className" : "alluxio.stress.worker.UfsIOParameters",
"mThreads" : 2,
"mDataSize" : "512m",
"mPath" : "s3://test_bucket/test_path",
"mUseUfsConf" : false,
"mConf" : { }
},
"className" : "alluxio.stress.worker.IOTaskSummary"
}