Class TestCacheAwareLoadBalancerCostFunctions
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.StochasticBalancerTestBase
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 org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer
private static org.apache.hadoop.conf.Configuration
Fields inherited from class org.apache.hadoop.hbase.master.balancer.StochasticBalancerTestBase
dummyMetricsStochasticBalancer
Fields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, 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.StochasticBalancerTestBase
beforeAllTests, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration
Methods 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, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, 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
-
-
Constructor Details
-
TestCacheAwareLoadBalancerCostFunctions
-
-
Method Details
-
saveInitialConfiguration
-
beforeEachTest
-
testVerifyCacheAwareSkewnessCostFunctionEnabled
-
testVerifyCacheAwareSkewnessCostFunctionDisabled
-
testVerifyCacheCostFunctionEnabled
-
testVerifyCacheCostFunctionDisabledByNoBucketCachePersistence
-
testVerifyCacheCostFunctionDisabledByNoMultiplier
-
testCacheCost
-