Examples of PeriodicRandomActionPolicy


Examples of org.apache.hadoop.hbase.chaos.policies.PeriodicRandomActionPolicy

    util.initializeCluster(clusterSize);
  }

  @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

Examples of org.apache.hadoop.hbase.chaos.policies.PeriodicRandomActionPolicy

    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)),
        new PeriodicRandomActionPolicy(90 * 1000, actions4));
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.chaos.policies.PeriodicRandomActionPolicy

   * can cause test to fail when Put runs out of retries. */
  private static final long CHAOS_EVERY_MS = 65 * 1000;

  @Override
  public ChaosMonkey build() {
    Policy chaosPolicy = new PeriodicRandomActionPolicy(
        CHAOS_EVERY_MS,
        new UnbalanceKillAndRebalanceAction()
    );

    return new PolicyBasedChaosMonkey(util, chaosPolicy);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.