Package org.apache.hadoop.hbase.chaos.monkies

Examples of org.apache.hadoop.hbase.chaos.monkies.PolicyBasedChaosMonkey


  @Override
  public void setUpMonkey() throws Exception {
    Policy p = new PeriodicRandomActionPolicy(sleepTime,
      new RestartRandomRsExceptMetaAction(sleepTime),
      new MoveRandomRegionOfTableAction(tableName));
    this.monkey = new PolicyBasedChaosMonkey(util, p);
    // don't start monkey right away
  }
View Full Code Here


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

    return new PolicyBasedChaosMonkey(util,
        new PeriodicRandomActionPolicy(60 * 1000, actions1),
        new PeriodicRandomActionPolicy(90 * 1000, actions2),
        new CompositeSequentialPolicy(
            new DoActionsOncePolicy(150 * 1000, actions3),
            new PeriodicRandomActionPolicy(150 * 1000, actions3)),
View Full Code Here

    Policy chaosPolicy = new PeriodicRandomActionPolicy(
        CHAOS_EVERY_MS,
        new UnbalanceKillAndRebalanceAction()
    );

    return new PolicyBasedChaosMonkey(util, chaosPolicy);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.chaos.monkies.PolicyBasedChaosMonkey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.