public final class Performance extends 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 |
createFiles()
Creates the files for this example.
|
static void |
logPerIteration(long startTimeMs,
int times,
String msg,
int workerId)
Writes log information.
|
static void |
main(String[] args)
Runs the performance test.
|
public static void createFiles()
throws AlluxioException,
IOException
AlluxioException - if creating a file failsIOException - if a non-Alluxio related exception occurspublic static void logPerIteration(long startTimeMs,
int times,
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(String[] args) throws Exception
java -cp <ALLUXIO-VERSION> alluxio.examples.Performance <MasterIp> <FileNamePrefix>
<WriteBlockSizeInBytes> <BlocksPerFile> <DebugMode:true/false> <Threads> <FilesPerThread>
<TestCaseNumber> <BaseFileNumber>args - the arguments for this exampleException - if the example failsCopyright © 2017. All Rights Reserved.