Module org.elasticsearch.server
Class NodeAllocationOrdering
java.lang.Object
org.elasticsearch.cluster.routing.allocation.allocator.NodeAllocationOrdering
Tracks the order in which nodes are used for allocation so that we can allocate shards to nodes in a round-robin fashion (all else being
equal).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
recordAllocation
(String nodeId) void
retainNodes
(Set<String> retainedNodeIds) sort
(Collection<String> nodeIds)
-
Constructor Details
-
NodeAllocationOrdering
public NodeAllocationOrdering()
-
-
Method Details
-
recordAllocation
-
sort
-
retainNodes
-
clear
public void clear()
-