public class TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal extends RSGroupableBalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer |
loadBalancer |
conf, groupMap, groups, regionAssignment, regionId, servers, table0, tableDescs, tableMap, tables
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, dummyMetricsStochasticBalancer, largeCluster
Constructor and Description |
---|
TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeAllTests() |
private org.apache.hadoop.hbase.ServerMetrics |
mockServerMetricsWithReadRequests(org.apache.hadoop.hbase.ServerName server,
List<org.apache.hadoop.hbase.client.RegionInfo> regionsOnServer,
long readRequestCount) |
void |
testBalanceCluster()
Test HBASE-20791
|
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 org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer loadBalancer
public TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal()
public static void beforeAllTests() throws Exception
Exception
private org.apache.hadoop.hbase.ServerMetrics mockServerMetricsWithReadRequests(org.apache.hadoop.hbase.ServerName server, List<org.apache.hadoop.hbase.client.RegionInfo> regionsOnServer, long readRequestCount)
public void testBalanceCluster() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.