Class TestCacheAwareLoadBalancerCostFunctions
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.TestCacheAwareLoadBalancerCostFunctions
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
BalancerTestBase.MockMapping
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private final int[][][]
Data set to testCacheCost: [test][0][0] = mapping of server to number of regions it hosts [test][region + 1][0] = server that region is hosted on [test][region + 1][server + 1] = size of region cached on serverprivate final float[]
private final org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer
private org.apache.hadoop.hbase.master.MasterServices
private static org.apache.hadoop.conf.Configuration
Fields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, dummyMetricsStochasticBalancer, largeCluster, regionId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
void
void
void
void
void
void
Methods inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration, uniformRegions, updateLoad
-
Field Details
-
CLASS_RULE
-
expectedCacheCost
-
clusterRegionCacheRatioMocks
Data set to testCacheCost: [test][0][0] = mapping of server to number of regions it hosts [test][region + 1][0] = server that region is hosted on [test][region + 1][server + 1] = size of region cached on server -
storedConfiguration
-
loadBalancer
-
services
-
-
Constructor Details
-
TestCacheAwareLoadBalancerCostFunctions
-
-
Method Details
-
saveInitialConfiguration
-
beforeEachTest
-
testVerifyCacheAwareSkewnessCostFunctionEnabled
-
testVerifyCacheAwareSkewnessCostFunctionDisabled
-
testVerifyCacheCostFunctionEnabled
-
testVerifyCacheCostFunctionDisabledByNoBucketCachePersistence
-
testVerifyCacheCostFunctionDisabledByNoMultiplier
-
testCacheCost
-