public class UnbalanceKillAndRebalanceAction extends Action
Action.ActionContext
Modifier and Type | Field and Description |
---|---|
private static double |
FRC_SERVERS_THAT_HOARD_AND_DIE |
private static double |
FRC_SERVERS_THAT_HOARD_AND_LIVE
Fractions of servers to get regions and live and die respectively; from all other
servers, HOARD_FRC_OF_REGIONS will be removed to the above randomly
|
private static double |
HOARD_FRC_OF_REGIONS |
private boolean |
killMetaRs |
private long |
waitAfterBalanceMilliSec |
private long |
waitForKillsMilliSec |
private long |
waitForUnbalanceMilliSec
Waits between calling unbalance and killing servers, kills and rebalance, and rebalance
and restarting the servers; to make sure these events have time to impact the cluster.
|
cluster, context, initialServers, initialStatus, KILL_DATANODE_TIMEOUT_DEFAULT, KILL_DATANODE_TIMEOUT_KEY, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, KILL_ZK_NODE_TIMEOUT_DEFAULT, KILL_ZK_NODE_TIMEOUT_KEY, killDataNodeTimeout, killMasterTimeout, killRsTimeout, killZkNodeTimeout, LOG, START_DATANODE_TIMEOUT_DEFAULT, START_DATANODE_TIMEOUT_KEY, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, START_ZK_NODE_TIMEOUT_DEFAULT, START_ZK_NODE_TIMEOUT_KEY, startDataNodeTimeout, startMasterTimeout, startRsTimeout, startZkNodeTimeout
Constructor and Description |
---|
UnbalanceKillAndRebalanceAction(long waitUnbalance,
long waitKill,
long waitAfterBalance,
boolean killMetaRs) |
Modifier and Type | Method and Description |
---|---|
void |
perform() |
forceBalancer, getConf, getCurrentServers, init, killDataNode, killMaster, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, startDataNode, startMaster, startRs, startZKNode, unbalanceRegions
private static final double FRC_SERVERS_THAT_HOARD_AND_LIVE
private static final double FRC_SERVERS_THAT_HOARD_AND_DIE
private static final double HOARD_FRC_OF_REGIONS
private long waitForUnbalanceMilliSec
private long waitForKillsMilliSec
private long waitAfterBalanceMilliSec
private boolean killMetaRs
public UnbalanceKillAndRebalanceAction(long waitUnbalance, long waitKill, long waitAfterBalance, boolean killMetaRs)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.