Class IntegrationTestMTTR

java.lang.Object
org.apache.hadoop.hbase.mttr.IntegrationTestMTTR

public class IntegrationTestMTTR extends Object
Integration test that should benchmark how fast HBase can recover from failures. This test starts different threads:
  1. Load Test Tool.
    This runs so that all RegionServers will have some load and WALs will be full.
  2. Scan thread.
    This thread runs a very short scan over and over again recording how log it takes to respond. The longest response is assumed to be the time it took to recover.
  3. Put thread.
    This thread just like the scan thread except it does a very small put.
  4. Admin thread.
    This thread will continually go to the master to try and get the cluster status. Just like the put and scan threads, the time to respond is recorded.
  5. Chaos Monkey thread.
    This thread runs a ChaosMonkey.Action.

The ChaosMonkey actions currently run are:

  • Restart the RegionServer holding meta.
  • Move the Regions of meta.
  • Restart the RegionServer holding the table the scan and put threads are targeting.
  • Move the Regions of the table used by the scan and put threads.
  • Restart the master.

At the end of the test a log line is output on the INFO level containing the timing data that was collected.