public class TestSimpleLoadBalancer extends BalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) int[][] |
clusterStateMocks |
private static org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer |
loadBalancer |
private static org.slf4j.Logger |
LOG |
(package private) int[] |
mockUniformCluster |
org.junit.rules.TestName |
name |
conf, largeCluster, regionId
Constructor and Description |
---|
TestSimpleLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeAllTests() |
void |
testBalanceClusterOverall()
Test the load balancing algorithm.
|
void |
testBalanceClusterOverallStrictly() |
void |
testImpactOfBalanceClusterOverall()
Test the load balancing algorithm.
|
private void |
testImpactOfBalanceClusterOverall(boolean useLoadOfAllTable) |
void |
testImpactOfBalanceClusterOverallWithLoadOfAllTable() |
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, uniformRegions, updateLoad
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer loadBalancer
int[][] clusterStateMocks
int[] mockUniformCluster
public org.junit.rules.TestName name
public TestSimpleLoadBalancer()
public static void beforeAllTests() throws Exception
Exception
public void testBalanceClusterOverall() throws Exception
Exception
public void testImpactOfBalanceClusterOverall() throws Exception
Exception
public void testImpactOfBalanceClusterOverallWithLoadOfAllTable() throws Exception
Exception
private void testImpactOfBalanceClusterOverall(boolean useLoadOfAllTable) throws Exception
Exception
public void testBalanceClusterOverallStrictly() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.