Package org.apache.hadoop.hbase.chaos.actions

Examples of org.apache.hadoop.hbase.chaos.actions.MoveRandomRegionOfTableAction


    };

    // Destructive actions to mess things around.
    Action[] actions3 = new Action[] {
        new MoveRegionsOfTableAction(20000, tableName),
        new MoveRandomRegionOfTableAction(20000, tableName),
        new RestartRandomRsAction(60000),
        new BatchRestartRsAction(60000, 0.5f),
        new RestartActiveMasterAction(5000),
        new RollingBatchRestartRsAction(5000, 1.0f),
        new RestartRsHoldingMetaAction(35000),
View Full Code Here


    Action[] actions1 = new Action[] {
        new CompactTableAction(tableName, 0.5f),
        new CompactRandomRegionOfTableAction(tableName, 0.6f),
        new FlushTableAction(tableName),
        new FlushRandomRegionOfTableAction(tableName),
        new MoveRandomRegionOfTableAction(tableName)
    };

    // Actions such as split/merge/snapshot.
    // They should not cause data loss, or unreliability
    // such as region stuck in transition.
    Action[] actions2 = new Action[] {
        new SplitRandomRegionOfTableAction(tableName),
        new MergeRandomAdjacentRegionsOfTableAction(tableName),
        new SnapshotTableAction(tableName),
        new AddColumnAction(tableName),
        new RemoveColumnAction(tableName, columnFamilies),
        new ChangeEncodingAction(tableName),
        new ChangeCompressionAction(tableName),
        new ChangeVersionsAction(tableName)
    };

    // Destructive actions to mess things around.
    Action[] actions3 = new Action[] {
        new MoveRegionsOfTableAction(800, tableName),
        new MoveRandomRegionOfTableAction(800, tableName),
        new RestartRandomRsAction(60000),
        new BatchRestartRsAction(5000, 0.5f),
        new RestartActiveMasterAction(5000),
        new RollingBatchRestartRsAction(5000, 1.0f),
        new RestartRsHoldingMetaAction(35000)
View Full Code Here

    Action[] actions1 = new Action[] {
        new CompactTableAction(tableName, 0.5f),
        new CompactRandomRegionOfTableAction(tableName, 0.6f),
        new FlushTableAction(tableName),
        new FlushRandomRegionOfTableAction(tableName),
        new MoveRandomRegionOfTableAction(tableName)
    };

    // Actions such as split/merge/snapshot.
    // They should not cause data loss, or unreliability
    // such as region stuck in transition.
View Full Code Here

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

    Action[] actions1 = new Action[] {
        new CompactTableAction(tableName, compactTableRatio),
        new CompactRandomRegionOfTableAction(tableName, compactRandomRegionRatio),
        new FlushTableAction(tableName),
        new FlushRandomRegionOfTableAction(tableName),
        new MoveRandomRegionOfTableAction(tableName)
    };

    // Actions such as split/merge/snapshot.
    // They should not cause data loss, or unreliability
    // such as region stuck in transition.
    Action[] actions2 = new Action[] {
        new SplitRandomRegionOfTableAction(tableName),
        new MergeRandomAdjacentRegionsOfTableAction(tableName),
        new SnapshotTableAction(tableName),
        new AddColumnAction(tableName),
        new RemoveColumnAction(tableName, columnFamilies),
        new ChangeEncodingAction(tableName),
        new ChangeCompressionAction(tableName),
        new ChangeBloomFilterAction(tableName),
        new ChangeVersionsAction(tableName)
    };

    // Destructive actions to mess things around.
    Action[] actions3 = new Action[] {
        new MoveRegionsOfTableAction(moveRegionsSleepTime, moveRegionsMaxTime,
            tableName),
        new MoveRandomRegionOfTableAction(moveRandomRegionSleepTime, tableName),
        new RestartRandomRsAction(restartRandomRSSleepTime),
        new BatchRestartRsAction(batchRestartRSSleepTime, batchRestartRSRatio),
        new RestartActiveMasterAction(restartActiveMasterSleepTime),
        new RollingBatchRestartRsAction(rollingBatchRestartRSSleepTime,
            rollingBatchRestartRSRatio),
View Full Code Here

    Action[] actions1 = new Action[] {
        new CompactTableAction(tableName, compactTableRatio),
        new CompactRandomRegionOfTableAction(tableName, compactRandomRegionRatio),
        new FlushTableAction(tableName),
        new FlushRandomRegionOfTableAction(tableName),
        new MoveRandomRegionOfTableAction(tableName)
    };

    // Actions such as split/merge/snapshot.
    // They should not cause data loss, or unreliability
    // such as region stuck in transition.
    Action[] actions2 = new Action[] {
        new SplitRandomRegionOfTableAction(tableName),
        new MergeRandomAdjacentRegionsOfTableAction(tableName),
        new SnapshotTableAction(tableName),
        new AddColumnAction(tableName),
        new RemoveColumnAction(tableName, columnFamilies),
        new ChangeEncodingAction(tableName),
        new ChangeCompressionAction(tableName),
        new ChangeBloomFilterAction(tableName),
        new ChangeVersionsAction(tableName)
    };

    // Destructive actions to mess things around.
    Action[] actions3 = new Action[] {
        new MoveRegionsOfTableAction(moveRegionsSleepTime, moveRegionsMaxTime,
            tableName),
        new MoveRandomRegionOfTableAction(moveRandomRegionSleepTime, tableName),
        new RestartRandomRsAction(restartRandomRSSleepTime),
        new BatchRestartRsAction(batchRestartRSSleepTime, batchRestartRSRatio),
        new RestartActiveMasterAction(restartActiveMasterSleepTime),
        new RollingBatchRestartRsAction(rollingBatchRestartRSSleepTime,
            rollingBatchRestartRSRatio),
View Full Code Here

        new SplitRandomRegionOfTableAction(tableName),
        new MergeRandomAdjacentRegionsOfTableAction(tableName),
        new AddColumnAction(tableName),
        new RemoveColumnAction(tableName, columnFamilies),
        new MoveRegionsOfTableAction(800, 1600, tableName),
        new MoveRandomRegionOfTableAction(800, tableName),
        new RestartRandomRsAction(60000),
        new BatchRestartRsAction(5000, 0.5f),
        new RollingBatchRestartRsAction(5000, 1.0f),
        new RestartRsHoldingMetaAction(35000)
    };
View Full Code Here

        new CompactTableAction(tableName, MonkeyConstants.DEFAULT_PERIODIC_ACTION1_PERIOD),
        new CompactRandomRegionOfTableAction(tableName,
            MonkeyConstants.DEFAULT_COMPACT_RANDOM_REGION_RATIO),
        new FlushTableAction(tableName),
        new FlushRandomRegionOfTableAction(tableName),
        new MoveRandomRegionOfTableAction(tableName)
    };

    Action[] actions2 = new Action[] {
        new SplitRandomRegionOfTableAction(tableName),
        new MergeRandomAdjacentRegionsOfTableAction(tableName),
        new SnapshotTableAction(tableName),
        new AddColumnAction(tableName),
        new RemoveColumnAction(tableName, columnFamilies),
        new ChangeEncodingAction(tableName),
        new ChangeCompressionAction(tableName),
        new ChangeBloomFilterAction(tableName),
        new ChangeVersionsAction(tableName)
    };

    Action[] actions3 = new Action[] {
        new MoveRegionsOfTableAction(MonkeyConstants.DEFAULT_MOVE_REGIONS_SLEEP_TIME,
            MonkeyConstants.DEFAULT_MOVE_REGIONS_MAX_TIME,
            tableName),
        new MoveRandomRegionOfTableAction(MonkeyConstants.DEFAULT_RESTART_ACTIVE_MASTER_SLEEP_TIME,
            tableName),
    };

    Action[] actions4 = new Action[] {
        new DumpClusterStatusAction()
View Full Code Here

  @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[] actions1 = new Action[] {
        new CompactTableAction(tableName, 0.5f),
        new CompactRandomRegionOfTableAction(tableName, 0.6f),
        new FlushTableAction(tableName),
        new FlushRandomRegionOfTableAction(tableName),
        new MoveRandomRegionOfTableAction(tableName)
    };

    // Actions such as split/merge/snapshot.
    // They should not cause data loss, or unreliability
    // such as region stuck in transition.
    Action[] actions2 = new Action[] {
        new SplitRandomRegionOfTableAction(tableName),
        new MergeRandomAdjacentRegionsOfTableAction(tableName),
        new SnapshotTableAction(tableName),
        new AddColumnAction(tableName),
        new RemoveColumnAction(tableName, columnFamilies),
        new ChangeEncodingAction(tableName),
        new ChangeCompressionAction(tableName),
        new ChangeBloomFilterAction(tableName),
        new ChangeVersionsAction(tableName)
    };

    // Destructive actions to mess things around.
    Action[] actions3 = new Action[] {
        new MoveRegionsOfTableAction(800, tableName),
        new MoveRandomRegionOfTableAction(800, tableName),
        new RestartRandomRsAction(60000),
        new BatchRestartRsAction(5000, 0.5f),
        new RestartActiveMasterAction(5000),
        new RollingBatchRestartRsAction(5000, 1.0f),
        new RestartRsHoldingMetaAction(35000)
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.chaos.actions.MoveRandomRegionOfTableAction

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.