public class TestStochasticLoadBalancerBalanceCluster extends BalancerTestBase
BalancerTestBase.MockMapping| Modifier and Type | Field and Description | 
|---|---|
| static HBaseClassTestRule | CLASS_RULE | 
| private static org.slf4j.Logger | LOG | 
clusterStateMocks, conf, largeCluster, loadBalancer, regionId| Constructor and Description | 
|---|
| TestStochasticLoadBalancerBalanceCluster() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | testBalanceCluster()Test the load balancing algorithm. | 
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, uniformRegions, updateLoadpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestStochasticLoadBalancerBalanceCluster()
public void testBalanceCluster() throws Exception
Invariant is that all servers should be hosting either floor(average) or ceiling(average)
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.