Skip to content

PasaLab/tachyon-perf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tachyon-Perf

A general performance test framework for Tachyon.The master branch is in version 0.2.0-SNAPSHOT.

##Prerequisites As this project is a test framework for Tachyon, you need to get the Tachyon installed first. If you are not clear how to setup Tachyon, please refer to the guidelines here.

Currently the master branch of Tachyon-Perf supports testing tachyon-0.5.0 (the lastest released version). We also provide a special branch supports a version of Tachyon-0.6.0-Snapshot (Commit NO. 1f512044b939b9b0a2c58f64bca4516642daf8a8). Please see this page to find out how to use Tachyon-Perf against the Tachyon-0.6.0-Snapshot.

The following shows how to run tachyon-perf, and you can add a new benchmark to tachyon-perf if needed. See more in How to add a new benchmark

##Compile Tachyon-Perf

  1. The compiling command is mvn install, and you can specify the Tachyon version or Hadoop version by -Dtachyon.version=X.X.X or -Dhadoop.version=X.X.X as a compile parameter.
  2. The default Tachyon version is set to 0.5.0, which is now available from MVNRepository. The default Hadoop version is set to 1.0.4, which is also default in Tachyon-0.5.0.

##Run Tachyon-Perf Tests Following is the basic steps to run a Tachyon-Perf test. You can see more details of those benchmarks here.

  1. Copy conf/tachyon-perf-env.sh.template to conf/tachyon-perf-env.sh and configure it.
  2. Edit conf/slaves and distribute the tachyon-perf directory to all the same path on the slave nodes.
  3. The running command is ./bin/tachyon-perf <TaskType>
  • The parameter is the type of test task, and now it should be Connect, CreateFile, Read or Write, means the connect test, create file test, read test or the write test.
  • The task's configurations are in conf/testSuite/<TaskType>.xml, and you can modify it as your wish. Now there has conf/testSuite/Connect.xml, conf/testSuite/CreateFile.xml, conf/testSuite/Read.xml and conf/testSuite/Write.xml.
  1. When TachyonPerf is running, the status of the test job will be printed on the console. For some reasons, if you want to abort the tests, you can just press Ctrl + C to terminate current thread and then type the command ./bin/tachyon-perf-abort at the master node to abort test processes on each slave node.
  2. After all the tests finished successfully, each node will generate a result report, locates at result/ by default. You can also generate a graphical report by following commands in the section "Generating Test Reports".

##Configuration Here, we list the alternative configurations in conf/tachyon-perf-env.sh. The detailed description of task configurations are in their xml files.

Property Name Meaning Default Value
tachyon.perf.status.debug if true, the node names of the running status will be printed false
tachyon.perf.failed.abort if true, the test will abort when the number of failed nodes is more than a threshold true
tachyon.perf.failed.percentage the percentage to determine the failed nodes threshold 1
tachyon.perf.tfs.address the Tachyon Master address tachyon://localhost:19998
tachyon.perf.tfs.dir the workspace dir in Tachyon File System /tachyon-perf-workspace
tachyon.perf.out.dir the report output path TACHYON_PERF_HOME + "/result"

##Generating Test Reports There are two tools used to generate a report. One is TachyonPerfCollector, which will generate a text report. And another is TachyonPerfHtmlReport, which will generate a visible html report. ###TachyonPerfCollector After a test task is finish, you can use generate a text report at $TACHYON_PERF_OUT_DIR/ with command ./bin/tachyon-perf-collect <TaskType>. ###TachyonPerfHtmlReport Attention: this feature is avaiable in the branch "branch-0.1.0". And we are considering to choose a more suitable component instead of this. To make the test report easy and friendly to read, we demostrate the test results with charts and diagrams by adopting D3 javascript. After running both write and read tests(all tests are finished), you can generate an HTML report with command ./bin/tachyon-perf-html-report. Then the report will be generated at $TACHYON_PERF_OUT_DIR/htmlReport/report.html. It's in the HTML format so you can open it with your web browser.

About

A General Performance Test Framework for Tachyon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published