Module org.elasticsearch.server
Class DesiredBalanceReconciler
java.lang.Object
org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceReconciler
Given the current allocation of shards and the desired balance, performs the next (legal) shard movements towards the goal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LongGaugeMetric
Total number of assigned shards during last reconciliationprotected final LongGaugeMetric
Number of unassigned shards during last reconciliationprotected final LongGaugeMetric
Number of assigned shards during last reconciliation that are not allocated on desired node and need to be moved -
Constructor Summary
ConstructorsConstructorDescriptionDesiredBalanceReconciler
(ClusterSettings clusterSettings, ThreadPool threadPool, MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
reconcile
(DesiredBalance desiredBalance, RoutingAllocation allocation)
-
Field Details
-
UNDESIRED_ALLOCATIONS_LOG_INTERVAL_SETTING
-
UNDESIRED_ALLOCATIONS_LOG_THRESHOLD_SETTING
-
unassignedShards
Number of unassigned shards during last reconciliation -
totalAllocations
Total number of assigned shards during last reconciliation -
undesiredAllocations
Number of assigned shards during last reconciliation that are not allocated on desired node and need to be moved
-
-
Constructor Details
-
DesiredBalanceReconciler
public DesiredBalanceReconciler(ClusterSettings clusterSettings, ThreadPool threadPool, MeterRegistry meterRegistry)
-
-
Method Details
-
reconcile
-
clear
public void clear()
-