@Override
  public ChaosMonkey build() {
    loadProperties();

    // Destructive actions to mess things around.
    Action[] actions1 =
      new Action[] { new RestartActiveMasterAction(restartActiveMasterSleepTime), };

    // Action to log more info for debugging
    Action[] actions2 = new Action[] { new DumpClusterStatusAction() };

    return new PolicyBasedChaosMonkey(properties, util,
      new PeriodicRandomActionPolicy(action1Period, actions1),
      new PeriodicRandomActionPolicy(action2Period, actions2));
  }
A chaos monkey to kill the active master periodically. Can be run in single master or multi
master setup.
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/MasterKillingMonkeyFactory.java