View Javadoc

1   /**
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.apache.hadoop.hbase.chaos.factories;
19  
20  public interface MonkeyConstants {
21  
22    String PERIODIC_ACTION1_PERIOD = "sdm.action1.period";
23    String PERIODIC_ACTION2_PERIOD = "sdm.action2.period";
24    String PERIODIC_ACTION4_PERIOD = "sdm.action4.period";
25    String COMPOSITE_ACTION3_PERIOD = "sdm.action3.period";
26    String MOVE_REGIONS_MAX_TIME = "move.regions.max.time";
27    String MOVE_REGIONS_SLEEP_TIME = "move.regions.sleep.time";
28    String MOVE_RANDOM_REGION_SLEEP_TIME = "move.randomregion.sleep.time";
29    String RESTART_RANDOM_RS_SLEEP_TIME = "restart.random.rs.sleep.time";
30    String BATCH_RESTART_RS_SLEEP_TIME = "batch.restart.rs.sleep.time";
31    String BATCH_RESTART_RS_RATIO = "batch.restart.rs.ratio";
32    String RESTART_ACTIVE_MASTER_SLEEP_TIME = "restart.active.master.sleep.time";
33    String ROLLING_BATCH_RESTART_RS_SLEEP_TIME = "rolling.batch.restart.rs.sleep.time";
34    String ROLLING_BATCH_RESTART_RS_RATIO = "rolling.batch.restart.rs.ratio";
35    String RESTART_RS_HOLDING_META_SLEEP_TIME = "restart.rs.holding.meta.sleep.time";
36    String COMPACT_TABLE_ACTION_RATIO = "compact.table.ratio";
37    String COMPACT_RANDOM_REGION_RATIO = "compact.random.region.ratio";
38    String UNBALANCE_CHAOS_EVERY_MS = "unbalance.chaos.period";
39    String UNBALANCE_WAIT_FOR_UNBALANCE_MS = "unbalance.action.wait.period";
40    String UNBALANCE_WAIT_FOR_KILLS_MS = "unbalance.action.kill.period";
41    String UNBALANCE_WAIT_AFTER_BALANCE_MS = "unbalance.action.wait.after.period";
42    String DECREASE_HFILE_SIZE_SLEEP_TIME = "decrease.hfile.size.sleep.time";
43  
44    long DEFAULT_PERIODIC_ACTION1_PERIOD = 60 * 1000;
45    long DEFAULT_PERIODIC_ACTION2_PERIOD = 90 * 1000;
46    long DEFAULT_PERIODIC_ACTION4_PERIOD = 90 * 1000;
47    long DEFAULT_COMPOSITE_ACTION3_PERIOD = 150 * 1000;
48    long DEFAULT_MOVE_REGIONS_MAX_TIME = 10 * 60 * 1000;
49    long DEFAULT_MOVE_REGIONS_SLEEP_TIME = 800;
50    long DEFAULT_MOVE_RANDOM_REGION_SLEEP_TIME = 800;
51    long DEFAULT_RESTART_RANDOM_RS_SLEEP_TIME = 60000;
52    long DEFAULT_BATCH_RESTART_RS_SLEEP_TIME = 5000;
53    float DEFAULT_BATCH_RESTART_RS_RATIO = 0.5f;
54    long DEFAULT_RESTART_ACTIVE_MASTER_SLEEP_TIME = 5000;
55    long DEFAULT_ROLLING_BATCH_RESTART_RS_SLEEP_TIME = 5000;
56    float DEFAULT_ROLLING_BATCH_RESTART_RS_RATIO = 1.0f;
57    long DEFAULT_RESTART_RS_HOLDING_META_SLEEP_TIME = 35000;
58    float DEFAULT_COMPACT_TABLE_ACTION_RATIO = 0.5f;
59    float DEFAULT_COMPACT_RANDOM_REGION_RATIO = 0.6f;
60    long DEFAULT_UNBALANCE_CHAOS_EVERY_MS = 65 * 1000;
61    long DEFAULT_UNBALANCE_WAIT_FOR_UNBALANCE_MS = 2 * 1000;
62    long DEFAULT_UNBALANCE_WAIT_FOR_KILLS_MS = 2 * 1000;
63    long DEFAULT_UNBALANCE_WAIT_AFTER_BALANCE_MS = 5 * 1000;
64    long DEFAULT_DECREASE_HFILE_SIZE_SLEEP_TIME = 30 * 1000;
65  }