public class TestStochasticLoadBalancerRegionReplica extends StochasticBalancerTestBase
Modifier and Type | Class and Description |
---|---|
private static class |
TestStochasticLoadBalancerRegionReplica.ForTestRackManagerOne |
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
dummyMetricsStochasticBalancer, loadBalancer
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, largeCluster, regionId
Constructor and Description |
---|
TestStochasticLoadBalancerRegionReplica() |
Modifier and Type | Method and Description |
---|---|
void |
testNeedsBalanceForColocatedReplicas() |
void |
testRegionReplicasOnSmallCluster() |
void |
testReplicaCost() |
void |
testReplicaCostForReplicas() |
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
public TestStochasticLoadBalancerRegionReplica()
public void testReplicaCost()
public void testReplicaCostForReplicas()
public void testNeedsBalanceForColocatedReplicas()
public void testRegionReplicasOnSmallCluster()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.