Pratyush Bhatt created HBASE-28419:
--------------------------------------
Summary: Allow Action and Policies of ServerKillingMonkey to be
configurable
Key: HBASE-28419
URL: https://issues.apache.org/jira/browse/HBASE-28419
Project: HBase
Issue Type: Improvement
Components: test
Reporter: Pratyush Bhatt
Currently for ServerKillingMonkeyFactory, actions and policies have hardcoded
timeouts.
{code:java}
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)
}; {code}
and
{code:java}
return new PolicyBasedChaosMonkey(properties, util,
new CompositeSequentialPolicy(new DoActionsOncePolicy(60 * 1000,
actions1),
new PeriodicRandomActionPolicy(60 * 1000, actions1)),
new PeriodicRandomActionPolicy(60 * 1000, actions2));
} {code}
We should allow these to be configurable too.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)