Interface TabletBalancer.BalanceParameters

Enclosing interface:
TabletBalancer

public static interface TabletBalancer.BalanceParameters
An interface for grouping parameters required for the balancer to balance tablets. This interface allows for evolution of the parameter set without changing the balancer's method signature.
Since:
2.1.0
  • Method Details

    • currentStatus

      Returns:
      the current status for all tablet servers (read-only)
    • currentMigrations

      Set<TabletId> currentMigrations()
      Returns:
      the migrations that are currently in progress (read-only)
    • migrationsOut

      List<TabletMigration> migrationsOut()
      Returns:
      a write-only map for storing new assignments made by the balancer. It is important that any tablets found in currentMigrations() are not included in the output migrations.
    • currentResourceGroups

      Map<ResourceGroupId,Set<TabletServerId>> currentResourceGroups()
      Returns:
      map of resource group name to set of TServerInstance objects
      Since:
      4.0.0
    • currentLevel

      String currentLevel()
      Return the DataLevel name for which the Manager is currently balancing. Balancers should return migrations for tables within the current DataLevel.
      Returns:
      name of current balancing iteration data level
      Since:
      2.1.4
    • getTablesToBalance

      Map<String,TableId> getTablesToBalance()
      This is the set of tables the balancer should consider. Balancing any tables outside of this set will be ignored and result in an error in the logs.
      Returns:
      map of table names to table ids that should be balanced.
      Since:
      2.1.4