Class NodeAllocationResult

    • Method Detail

      • getNode

        public DiscoveryNode getNode()
        Get the node that this decision is for.
      • isWeightRanked

        public boolean isWeightRanked()
        Is the weight assigned for the node?
      • getWeightRanking

        public int getWeightRanking()
        The weight ranking for allocating a shard to the node. Each node will have a unique weight ranking that is relative to the other nodes against which the deciders ran. For example, suppose there are 3 nodes which the allocation deciders decided upon: node1, node2, and node3. If node2 had the best weight for holding the shard, followed by node3, followed by node1, then node2's weight will be 1, node3's weight will be 2, and node1's weight will be 1. A value of 0 means the weight was not calculated or factored into the decision.