public final class Performance
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Performance.AlluxioReadWorker
A worker in Alluxio for read operations.
|
static class |
Performance.AlluxioWriterWorker
A worker in Alluxio for write operations.
|
static class |
Performance.GeneralWorker
A general worker.
|
static class |
Performance.HdfsWorker
A worker for HDFS.
|
static class |
Performance.Worker
Base class for workers used in this example.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
logPerIteration(long startTimeMs,
int times,
java.lang.String msg,
int workerId)
Writes log information.
|
static void |
main(java.lang.String[] args)
Runs the performance test.
|
public static void logPerIteration(long startTimeMs,
int times,
java.lang.String msg,
int workerId)
startTimeMs - the start time in millisecondstimes - the number of the iterationmsg - the messageworkerId - the id of the workerpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java -cp <ALLUXIO-VERSION> alluxio.examples.Performance <MasterIp> <FileNamePrefix>
<WriteBlockSizeInBytes> <BlocksPerFile> <DebugMode:true/false> <Threads> <FilesPerThread>
<TestCaseNumber> <BaseFileNumber>args - the arguments for this examplejava.lang.ExceptionCopyright © 2019. All Rights Reserved.