public class TestStochasticLoadBalancerBalanceCluster extends StochasticBalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
dummyMetricsStochasticBalancer, loadBalancer
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, largeCluster, regionId
Constructor and Description |
---|
TestStochasticLoadBalancerBalanceCluster() |
Modifier and Type | Method and Description |
---|---|
void |
testBalanceCluster()
Test the load balancing algorithm.
|
beforeAllTests, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, 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.