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, tablesclusterStateMocks, 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, updateLoadassertClusterAsBalanced, 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, updateLoadpublic 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
Exceptionpublic void testBalanceCluster() throws Exception
Exceptionpublic void testBulkAssignment() throws Exception
Exceptionpublic void testRetainAssignment() throws Exception
Exceptionpublic void testRoundRobinAssignment() throws Exception
Exceptionpublic void testOnConfigurationChange()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.