Class TestRSGroupBasedLoadBalancerWithCacheAwareLoadBalancerAsInternal
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.RSGroupableBalancerTestBase
org.apache.hadoop.hbase.master.balancer.TestRSGroupBasedLoadBalancerWithCacheAwareLoadBalancerAsInternal
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestRSGroupBasedLoadBalancerWithCacheAwareLoadBalancerAsInternal
extends RSGroupableBalancerTestBase
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
BalancerTestBase.MockMapping -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancerprivate static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.master.balancer.RSGroupableBalancerTestBase
conf, groupMap, groups, regionAssignment, regionId, servers, table0, tableDescs, tablesFields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, largeCluster -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidvoidRegions on the overloaded RS report low block-cache ratio; no RS reports prefetch/historical cache for those regions (soCacheAwareLoadBalancer.CacheAwareCandidateGeneratorhas no "old server" to prefer).voidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.master.balancer.RSGroupableBalancerTestBase
assertClusterAsBalanced, assertImmediateAssignment, assertRetainedAssignment, assignedRegions, constructGroupInfo, constructTableDesc, convertToGroupBasedMap, generateServers, getMockedGroupInfoManager, getMockedMaster, getTableName, mockClusterServers, mockServerMetricsWithRegionCacheInfo, printStats, randomRegions, reconcile, updateLoadMethods inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, uniformRegions, updateLoad
-
Field Details
-
LOG
-
loadBalancer
-
-
Constructor Details
-
TestRSGroupBasedLoadBalancerWithCacheAwareLoadBalancerAsInternal
-
-
Method Details
-
beforeAllTests
- Throws:
Exception
-
testRegionsNotCachedOnOldServerAndCurrentServer
- Throws:
Exception
-
testLowCacheRatioNoHistoricalCacheRelocatesWhenTargetHasFreeBlockCache
@Test public void testLowCacheRatioNoHistoricalCacheRelocatesWhenTargetHasFreeBlockCache() throws ExceptionRegions on the overloaded RS report low block-cache ratio; no RS reports prefetch/historical cache for those regions (soCacheAwareLoadBalancer.CacheAwareCandidateGeneratorhas no "old server" to prefer). Another RS has ample free block cache. The balancer should still emit plans that shed load from the hot RS onto the idle RS with spare cache capacity.- Throws:
Exception
-
testRegionsPartiallyCachedOnOldServerAndNotCachedOnCurrentServer
@Test public void testRegionsPartiallyCachedOnOldServerAndNotCachedOnCurrentServer() throws Exception- Throws:
Exception
-
testThrottlingRegionBeyondThreshold
- Throws:
Exception
-
testThrottlingRegionBelowThreshold
- Throws:
Exception
-
testThrottlingCacheRatioUnknownOnTarget
- Throws:
Exception
-
testThrottlingCacheRatioUnknownForRegion
- Throws:
Exception
-
testRegionPlansSortedByCacheRatioOnTarget
- Throws:
Exception
-
testRegionsFullyCachedOnOldServerAndNotCachedOnCurrentServers
- Throws:
Exception
-
testRegionsFullyCachedOnOldAndCurrentServers
- Throws:
Exception
-
testRegionsPartiallyCachedOnOldServerAndCurrentServer
- Throws:
Exception
-
testConfigUpdateDuringBalance
- Throws:
Exception
-