public class TestDefaultLoadBalancer 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.LoadBalancer |
loadBalancer |
private static org.slf4j.Logger |
LOG |
(package private) int[] |
mockUniformCluster |
org.junit.rules.TestName |
name |
conf, largeCluster, regionId
Constructor and Description |
---|
TestDefaultLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeAllTests() |
void |
testBalanceClusterOverall()
Test the load balancing algorithm.
|
void |
testImpactOfBalanceClusterOverall()
Test the load balancing algorithm.
|
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, 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.LoadBalancer loadBalancer
int[][] clusterStateMocks
int[] mockUniformCluster
public org.junit.rules.TestName name
public TestDefaultLoadBalancer()
public static void beforeAllTests() throws Exception
Exception
public void testBalanceClusterOverall() throws Exception
Exception
public void testImpactOfBalanceClusterOverall() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.