public class TestStochasticLoadBalancer extends BalancerTestBase
BalancerTestBase.MockMapping| Modifier and Type | Field and Description |
|---|---|
static java.lang.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 java.lang.String REGION_KEY
public void testKeepRegionLoad()
throws java.lang.Exception
java.lang.Exceptionpublic void testBalanceCluster()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkewCost()
public void testTableSkewCost()
public void testCostFromArray()
public void testLosingRs()
throws java.lang.Exception
java.lang.Exceptionpublic 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()