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

public class NodeAllocationOrdering extends Object
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 Details

    • NodeAllocationOrdering

      public NodeAllocationOrdering()
  • Method Details

    • recordAllocation

      public void recordAllocation(String nodeId)
    • sort

      public List<String> sort(Collection<String> nodeIds)
    • retainNodes

      public void retainNodes(Set<String> retainedNodeIds)
    • clear

      public void clear()