static MoveDecision |
MoveDecision.cannotRebalance(Decision canRebalanceDecision,
AllocationDecision allocationDecision,
int currentNodeRanking,
List<NodeAllocationResult> nodeDecisions) |
Creates a move decision for when rebalancing the shard is not allowed.
|
static MoveDecision |
MoveDecision.cannotRemain(Decision canRemainDecision,
AllocationDecision allocationDecision,
DiscoveryNode assignedNode,
List<NodeAllocationResult> nodeDecisions) |
Creates a move decision for the shard not being allowed to remain on its current node.
|
static AllocateUnassignedDecision |
AllocateUnassignedDecision.delayed(long remainingDelay,
long totalDelay,
List<NodeAllocationResult> decisions) |
Returns a NO decision for a delayed shard allocation on a replica shard, with the individual node-level
decisions that comprised the final NO decision, if in explain mode.
|
static AllocateUnassignedDecision |
AllocateUnassignedDecision.fromDecision(Decision decision,
DiscoveryNode assignedNode,
List<NodeAllocationResult> nodeDecisions) |
|
static AllocateUnassignedDecision |
AllocateUnassignedDecision.no(UnassignedInfo.AllocationStatus allocationStatus,
List<NodeAllocationResult> decisions) |
Returns a NO decision with the given UnassignedInfo.AllocationStatus, and the individual node-level
decisions that comprised the final NO decision if in explain mode.
|
static AllocateUnassignedDecision |
AllocateUnassignedDecision.no(UnassignedInfo.AllocationStatus allocationStatus,
List<NodeAllocationResult> decisions,
boolean reuseStore) |
Returns a NO decision with the given UnassignedInfo.AllocationStatus, and the individual node-level
decisions that comprised the final NO decision if in explain mode.
|
XContentBuilder |
AbstractAllocationDecision.nodeDecisionsToXContent(List<NodeAllocationResult> nodeDecisions,
XContentBuilder builder,
ToXContent.Params params) |
Generates X-Content for the node-level decisions, creating the outer "node_decisions" object
in which they are serialized.
|
static MoveDecision |
MoveDecision.rebalance(Decision canRebalanceDecision,
AllocationDecision allocationDecision,
DiscoveryNode assignedNode,
int currentNodeRanking,
List<NodeAllocationResult> nodeDecisions) |
Creates a decision for whether to move the shard to a different node to form a better cluster balance.
|
List<NodeAllocationResult> |
AbstractAllocationDecision.sortNodeDecisions(List<NodeAllocationResult> nodeDecisions) |
Sorts a list of node level decisions by the decision type, then by weight ranking, and finally by node id.
|
static AllocateUnassignedDecision |
AllocateUnassignedDecision.throttle(List<NodeAllocationResult> decisions) |
Returns a THROTTLE decision, with the individual node-level decisions that
comprised the final THROTTLE decision if in explain mode.
|
static AllocateUnassignedDecision |
AllocateUnassignedDecision.yes(DiscoveryNode assignedNode,
String allocationId,
List<NodeAllocationResult> decisions,
boolean reuseStore) |
Creates a YES decision with the given individual node-level decisions that
comprised the final YES decision, along with the node id to which the shard is assigned and
the allocation id for the shard, if available.
|