public class TestStochasticLoadBalancerBalanceCluster extends BalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, dummyMetricsStochasticBalancer, 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, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration, uniformRegions, updateLoad
public 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)
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.