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 |
logPerIteration(long startTimeMs,
int times,
String msg,
int workerId)
Writes log information.
|
static void |
main(String[] args)
Runs the performance test.
|
public 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
Copyright © 2023. All Rights Reserved.