public class TestRSGroupBasedLoadBalancer extends RSGroupableBalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer |
loadBalancer |
private static org.slf4j.Logger |
LOG |
conf, groupMap, groups, regionAssignment, regionId, servers, table0, tableDescs, tableMap, tables
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, dummyMetricsStochasticBalancer, largeCluster
Constructor and Description |
---|
TestRSGroupBasedLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeAllTests() |
void |
testBalanceCluster()
Test the load balancing algorithm.
|
void |
testBulkAssignment()
Tests the bulk assignment used during cluster startup.
|
void |
testOnConfigurationChange() |
void |
testRetainAssignment()
Test the cluster startup bulk assignment which attempts to retain assignment info.
|
void |
testRoundRobinAssignment()
Test BOGUS_SERVER_NAME among groups do not overwrite each other.
|
assertClusterAsBalanced, assertImmediateAssignment, assertRetainedAssignment, assignedRegions, constructGroupInfo, constructTableDesc, convertToGroupBasedMap, generateServers, getMockedGroupInfoManager, getMockedMaster, getTableName, mockClusterServers, printStats, randomRegions, reconcile, updateLoad
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, 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
private static org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer loadBalancer
public TestRSGroupBasedLoadBalancer()
public static void beforeAllTests() throws Exception
Exception
public void testBalanceCluster() throws Exception
Exception
public void testBulkAssignment() throws Exception
Exception
public void testRetainAssignment() throws Exception
Exception
public void testRoundRobinAssignment() throws Exception
Exception
public void testOnConfigurationChange()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.