public class TestCacheAwareLoadBalancerCostFunctions extends StochasticBalancerTestBase
Modifier and Type | Class and Description |
---|---|
private class |
TestCacheAwareLoadBalancerCostFunctions.MockClusterForCacheCost |
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private int[][][] |
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
|
private float[] |
expectedCacheCost |
private org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer |
loadBalancer |
private static org.apache.hadoop.conf.Configuration |
storedConfiguration |
dummyMetricsStochasticBalancer
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, largeCluster, regionId
Constructor and Description |
---|
TestCacheAwareLoadBalancerCostFunctions() |
Modifier and Type | Method and Description |
---|---|
void |
beforeEachTest() |
static void |
saveInitialConfiguration() |
void |
testCacheCost() |
void |
testVerifyCacheAwareSkewnessCostFunctionDisabled() |
void |
testVerifyCacheAwareSkewnessCostFunctionEnabled() |
void |
testVerifyCacheCostFunctionDisabledByNoBucketCachePersistence() |
void |
testVerifyCacheCostFunctionDisabledByNoMultiplier() |
void |
testVerifyCacheCostFunctionEnabled() |
beforeAllTests, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration
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
public static final HBaseClassTestRule CLASS_RULE
private final float[] expectedCacheCost
private final int[][][] clusterRegionCacheRatioMocks
private static org.apache.hadoop.conf.Configuration storedConfiguration
private org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer loadBalancer
public TestCacheAwareLoadBalancerCostFunctions()
public static void saveInitialConfiguration()
public void beforeEachTest()
public void testVerifyCacheAwareSkewnessCostFunctionEnabled()
public void testVerifyCacheAwareSkewnessCostFunctionDisabled()
public void testVerifyCacheCostFunctionEnabled()
public void testVerifyCacheCostFunctionDisabledByNoBucketCachePersistence()
public void testVerifyCacheCostFunctionDisabledByNoMultiplier()
public void testCacheCost()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.