java.lang.Object
org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceReconciler

public class DesiredBalanceReconciler extends Object
Given the current allocation of shards and the desired balance, performs the next (legal) shard movements towards the goal.
  • Field Details

    • UNDESIRED_ALLOCATIONS_LOG_INTERVAL_SETTING

      public static final Setting<TimeValue> UNDESIRED_ALLOCATIONS_LOG_INTERVAL_SETTING
    • UNDESIRED_ALLOCATIONS_LOG_THRESHOLD_SETTING

      public static final Setting<Double> UNDESIRED_ALLOCATIONS_LOG_THRESHOLD_SETTING
    • unassignedShards

      protected final LongGaugeMetric unassignedShards
      Number of unassigned shards during last reconciliation
    • totalAllocations

      protected final LongGaugeMetric totalAllocations
      Total number of assigned shards during last reconciliation
    • undesiredAllocations

      protected final LongGaugeMetric undesiredAllocations
      Number of assigned shards during last reconciliation that are not allocated on desired node and need to be moved
  • Constructor Details

  • Method Details