Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28419

Allow Action and Policies of ServerKillingMonkey to be configurable

    XMLWordPrintableJSON

Details

    Description

      Currently for ServerKillingMonkeyFactory, actions and policies have hardcoded timeouts.

          Action[] actions1 = new Action[] {
            new RestartRandomRsExceptMetaAction(60000),
            new RestartActiveMasterAction(5000),
            // only allow 2 servers to be dead
            new RollingBatchRestartRsAction(5000, 1.0f, 2, true),
            new ForceBalancerAction(),
            new GracefulRollingRestartRsAction(gracefulRollingRestartTSSLeepTime),
            new RollingBatchSuspendResumeRsAction(rollingBatchSuspendRSSleepTime,
                rollingBatchSuspendtRSRatio)
          }; 

      and

          return new PolicyBasedChaosMonkey(properties, util,
            new CompositeSequentialPolicy(new DoActionsOncePolicy(60 * 1000, actions1),
              new PeriodicRandomActionPolicy(60 * 1000, actions1)),
            new PeriodicRandomActionPolicy(60 * 1000, actions2));
        } 

      We should allow these to be configurable too.

      Attachments

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              pratyush.bhatt Pratyush Bhatt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: