Class AllocationDeciders
java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders
Combines the decision of multiple
AllocationDecider
implementations into a single allocation decision.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncanAllocate
(IndexMetadata indexMetadata, RoutingNode node, RoutingAllocation allocation) canAllocate
(ShardRouting shardRouting, RoutingAllocation allocation) canAllocate
(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) canAllocateReplicaWhenThereIsRetentionLease
(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) canForceAllocateDuringReplace
(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) canForceAllocatePrimary
(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) canRebalance
(RoutingAllocation allocation) canRebalance
(ShardRouting shardRouting, RoutingAllocation allocation) canRemain
(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) shouldAutoExpandToNode
(IndexMetadata indexMetadata, DiscoveryNode node, RoutingAllocation allocation)
-
Constructor Details
-
AllocationDeciders
-
-
Method Details
-
canRebalance
-
canAllocate
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) -
canRemain
public Decision canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) -
canAllocate
public Decision canAllocate(IndexMetadata indexMetadata, RoutingNode node, RoutingAllocation allocation) -
shouldAutoExpandToNode
public Decision shouldAutoExpandToNode(IndexMetadata indexMetadata, DiscoveryNode node, RoutingAllocation allocation) -
canAllocate
-
canRebalance
-
canForceAllocatePrimary
public Decision canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) -
canForceAllocateDuringReplace
public Decision canForceAllocateDuringReplace(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) -
canAllocateReplicaWhenThereIsRetentionLease
public Decision canAllocateReplicaWhenThereIsRetentionLease(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
-