public class TestStochasticLoadBalancer extends BalancerTestBase
BalancerTestBase.MockMapping| Modifier and Type | Field and Description |
|---|---|
static String |
REGION_KEY |
conf, loadBalancer, rand| Constructor and Description |
|---|
TestStochasticLoadBalancer() |
| Modifier and Type | Method and Description |
|---|---|
void |
testBalanceCluster()
Test the load balancing algorithm.
|
void |
testCostFromArray() |
void |
testKeepRegionLoad() |
void |
testLargeCluster() |
void |
testLosingRs() |
void |
testMidCluster() |
void |
testMidCluster2() |
void |
testMidCluster3() |
void |
testNeedsBalanceForColocatedReplicas() |
void |
testRegionReplicasOnSmallCluster() |
void |
testRegionReplicationOnMidClusterSameHosts() |
void |
testRegionReplicationOnMidClusterWithRacks() |
void |
testReplicaCost() |
void |
testReplicaCostForReplicas() |
void |
testSkewCost() |
void |
testSmallCluster() |
void |
testSmallCluster2() |
void |
testSmallCluster3() |
void |
testTableSkewCost() |
assertClusterAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createServerMap, mockCluster, mockClusterServers, mockClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, updateLoadpublic static final String REGION_KEY
public void testBalanceCluster()
throws Exception
Exceptionpublic void testSkewCost()
public void testTableSkewCost()
public void testCostFromArray()
public void testReplicaCost()
public void testReplicaCostForReplicas()
public void testNeedsBalanceForColocatedReplicas()
public void testSmallCluster()
public void testSmallCluster2()
public void testSmallCluster3()
public void testMidCluster()
public void testMidCluster2()
public void testMidCluster3()
public void testLargeCluster()
public void testRegionReplicasOnSmallCluster()
public void testRegionReplicationOnMidClusterSameHosts()
public void testRegionReplicationOnMidClusterWithRacks()