code: private void scheduleRebalance() {
      if (rebalanceTimer != null) {
        rebalanceTimer.cancel();
      }
      rebalanceTimer = getScheduler().schedule(REBALANCE_DURATION, this::rebalance);
    }
docs: Schedules rebalancing of primaries.