Class TestRSGroupBasedLoadBalancer


@Tag("org.apache.hadoop.hbase.testclassification.LargeTests") public class TestRSGroupBasedLoadBalancer extends RSGroupableBalancerTestBase
Test RSGroupBasedLoadBalancer with SimpleLoadBalancer as internal balancer
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • loadBalancer

      private static org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer loadBalancer
  • Constructor Details

  • Method Details

    • beforeAllTests

      @BeforeAll public static void beforeAllTests() throws Exception
      Throws:
      Exception
    • testBalanceCluster

      @Test public void testBalanceCluster() throws Exception
      Test the load balancing algorithm. Invariant is that all servers of the group should be hosting either floor(average) or ceiling(average)
      Throws:
      Exception
    • testBulkAssignment

      @Test public void testBulkAssignment() throws Exception
      Tests the bulk assignment used during cluster startup.

      Round-robin. Should yield a balanced cluster so same invariant as the load balancer holds, all servers holding either floor(avg) or ceiling(avg).

      Throws:
      Exception
    • testRetainAssignment

      @Test public void testRetainAssignment() throws Exception
      Test the cluster startup bulk assignment which attempts to retain assignment info.
      Throws:
      Exception
    • testRoundRobinAssignment

      @Test public void testRoundRobinAssignment() throws Exception
      Test BOGUS_SERVER_NAME among groups do not overwrite each other.
      Throws:
      Exception
    • testOnConfigurationChange

      @Test public void testOnConfigurationChange()