public class UnbalanceRegionsAction extends Action
Action.ActionContextcluster, context, initialServers, initialStatus, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, killMasterTimeout, killRsTimeout, LOG, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, startMasterTimeout, startRsTimeout| Constructor and Description |
|---|
UnbalanceRegionsAction(double fractionOfRegions,
double fractionOfServers)
Unbalances the regions on the cluster by choosing "target" servers, and moving
some regions from each of the non-target servers to random target servers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
perform() |
forceBalancer, getCurrentServers, init, killMaster, killRs, startMaster, startRs, unbalanceRegionspublic UnbalanceRegionsAction(double fractionOfRegions,
double fractionOfServers)
fractionOfRegions - Fraction of regions to move from each server.fractionOfServers - Fraction of servers to be chosen as targets.