You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2024/03/13 17:39:00 UTC
[jira] [Resolved] (HBASE-28419) Allow Action and Policies of ServerKillingMonkey to be configurable
[ https://issues.apache.org/jira/browse/HBASE-28419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang resolved HBASE-28419.
-------------------------------------
Fix Version/s: 4.0.0-alpha-1
Resolution: Fixed
> 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
> Assignee: Wei-Chiu Chuang
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0-alpha-1
>
>
> 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)