Uses of Class
org.elasticsearch.cluster.routing.allocation.RoutingAllocation
-
-
Uses of RoutingAllocation in org.elasticsearch.action.admin.cluster.allocation
Methods in org.elasticsearch.action.admin.cluster.allocation with parameters of type RoutingAllocation Modifier and Type Method Description static ClusterAllocationExplanationTransportClusterAllocationExplainAction. explainShard(ShardRouting shardRouting, RoutingAllocation allocation, ClusterInfo clusterInfo, boolean includeYesDecisions, GatewayAllocator gatewayAllocator, ShardsAllocator shardAllocator)static ShardRoutingTransportClusterAllocationExplainAction. findShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation) -
Uses of RoutingAllocation in org.elasticsearch.cluster.routing.allocation
Methods in org.elasticsearch.cluster.routing.allocation with parameters of type RoutingAllocation Modifier and Type Method Description protected ClusterStateAllocationService. buildResultAndLogHealthChange(ClusterState oldState, RoutingAllocation allocation, String reason) -
Uses of RoutingAllocation in org.elasticsearch.cluster.routing.allocation.allocator
Methods in org.elasticsearch.cluster.routing.allocation.allocator with parameters of type RoutingAllocation Modifier and Type Method Description voidBalancedShardsAllocator. allocate(RoutingAllocation allocation)voidShardsAllocator. allocate(RoutingAllocation allocation)Allocates shards to nodes in the cluster.ShardAllocationDecisionBalancedShardsAllocator. decideShardAllocation(ShardRouting shard, RoutingAllocation allocation)ShardAllocationDecisionShardsAllocator. decideShardAllocation(ShardRouting shard, RoutingAllocation allocation)Returns the decision for where a shard should reside in the cluster.Constructors in org.elasticsearch.cluster.routing.allocation.allocator with parameters of type RoutingAllocation Constructor Description Balancer(org.apache.logging.log4j.Logger logger, RoutingAllocation allocation, BalancedShardsAllocator.WeightFunction weight, float threshold) -
Uses of RoutingAllocation in org.elasticsearch.cluster.routing.allocation.command
Methods in org.elasticsearch.cluster.routing.allocation.command with parameters of type RoutingAllocation Modifier and Type Method Description RerouteExplanationAllocateEmptyPrimaryAllocationCommand. execute(RoutingAllocation allocation, boolean explain)RerouteExplanationAllocateReplicaAllocationCommand. execute(RoutingAllocation allocation, boolean explain)RerouteExplanationAllocateStalePrimaryAllocationCommand. execute(RoutingAllocation allocation, boolean explain)RerouteExplanationAllocationCommand. execute(RoutingAllocation allocation, boolean explain)Executes the command on aRoutingAllocationsetupRoutingExplanationsAllocationCommands. execute(RoutingAllocation allocation, boolean explain)Executes all wrapped commands on a givenRoutingAllocationRerouteExplanationCancelAllocationCommand. execute(RoutingAllocation allocation, boolean explain)RerouteExplanationMoveAllocationCommand. execute(RoutingAllocation allocation, boolean explain)protected RerouteExplanationAbstractAllocateAllocationCommand. explainOrThrowMissingRoutingNode(RoutingAllocation allocation, boolean explain, DiscoveryNode discoNode)Handle case where a disco node cannot be found in the routing table.protected RerouteExplanationAbstractAllocateAllocationCommand. explainOrThrowRejectedCommand(boolean explain, RoutingAllocation allocation, RuntimeException rte)Utility method for rejecting the current allocation command based on provided exceptionprotected RerouteExplanationAbstractAllocateAllocationCommand. explainOrThrowRejectedCommand(boolean explain, RoutingAllocation allocation, String reason)Utility method for rejecting the current allocation command based on provided reasonprotected voidAbstractAllocateAllocationCommand. initializeUnassignedShard(RoutingAllocation allocation, RoutingNodes routingNodes, RoutingNode routingNode, ShardRouting shardRouting)Initializes an unassigned shard on a node and removes it from the unassignedprotected voidAbstractAllocateAllocationCommand. initializeUnassignedShard(RoutingAllocation allocation, RoutingNodes routingNodes, RoutingNode routingNode, ShardRouting shardRouting, UnassignedInfo unassignedInfo, RecoverySource recoverySource)Initializes an unassigned shard on a node and removes it from the unassigned -
Uses of RoutingAllocation in org.elasticsearch.cluster.routing.allocation.decider
Methods in org.elasticsearch.cluster.routing.allocation.decider with parameters of type RoutingAllocation Modifier and Type Method Description DecisionAllocationDecider. canAllocate(IndexMetaData indexMetaData, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated at all at this state of theRoutingAllocation.DecisionAllocationDecider. canAllocate(RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given node can allow any allocation at all at this state of theRoutingAllocation.DecisionAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated at all at this state of theRoutingAllocation.DecisionAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated on the given node.DecisionAllocationDeciders. canAllocate(IndexMetaData indexMetaData, RoutingNode node, RoutingAllocation allocation)DecisionAllocationDeciders. canAllocate(RoutingNode node, RoutingAllocation allocation)DecisionAllocationDeciders. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionAllocationDeciders. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAwarenessAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionDiskThresholdDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionEnableAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionEnableAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionFilterAllocationDecider. canAllocate(IndexMetaData indexMetaData, RoutingNode node, RoutingAllocation allocation)DecisionFilterAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionMaxRetryAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionMaxRetryAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionNodeVersionAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionReplicaAfterPrimaryActiveAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionReplicaAfterPrimaryActiveAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionResizeAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionResizeAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionRestoreInProgressAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionRestoreInProgressAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionSameShardAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionShardsLimitAllocationDecider. canAllocate(RoutingNode node, RoutingAllocation allocation)DecisionShardsLimitAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionSnapshotInProgressAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated on the given node.DecisionThrottlingAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given primary shard can be forcibly allocated on the given node.DecisionAllocationDeciders. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionMaxRetryAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionResizeAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionRestoreInProgressAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionSameShardAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAllocationDecider. canRebalance(RoutingAllocation allocation)Returns aDecisionwhether the cluster can execute re-balanced operations at all.DecisionAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be re-balanced to the given allocation.DecisionAllocationDeciders. canRebalance(RoutingAllocation allocation)DecisionAllocationDeciders. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionClusterRebalanceAllocationDecider. canRebalance(RoutingAllocation allocation)DecisionClusterRebalanceAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionConcurrentRebalanceAllocationDecider. canRebalance(RoutingAllocation allocation)DecisionConcurrentRebalanceAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionEnableAllocationDecider. canRebalance(RoutingAllocation allocation)DecisionEnableAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionRebalanceOnlyWhenActiveAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionSnapshotInProgressAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be re-balanced to the given allocation.DecisionAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be remain on the given node.DecisionAllocationDeciders. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAwarenessAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionDiskThresholdDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionFilterAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionShardsLimitAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)static longDiskThresholdDecider. getExpectedShardSize(ShardRouting shard, RoutingAllocation allocation, long defaultValue)Returns the expected shard size for the given shard or the default value provided if not enough information are available to estimate the shards size. -
Uses of RoutingAllocation in org.elasticsearch.gateway
Methods in org.elasticsearch.gateway with parameters of type RoutingAllocation Modifier and Type Method Description voidBaseGatewayShardAllocator. allocateUnassigned(RoutingAllocation allocation)Allocate unassigned shards to nodes (if any) where valid copies of the shard already exist.voidGatewayAllocator. allocateUnassigned(RoutingAllocation allocation)voidGatewayAllocator. applyFailedShards(RoutingAllocation allocation, List<FailedShard> failedShards)voidGatewayAllocator. applyStartedShards(RoutingAllocation allocation, List<ShardRouting> startedShards)protected static List<NodeAllocationResult>BaseGatewayShardAllocator. buildDecisionsForAllNodes(ShardRouting shard, RoutingAllocation allocation)Builds decisions for all nodes in the cluster, so that the explain API can provide information on allocation decisions for each node, while still waiting to allocate the shard (e.g.AllocateUnassignedDecisionGatewayAllocator. decideUnassignedShardAllocation(ShardRouting unassignedShard, RoutingAllocation routingAllocation)Computes and returns the design for allocating a single unassigned shard.protected abstract AsyncShardFetch.FetchResult<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards>PrimaryShardAllocator. fetchData(ShardRouting shard, RoutingAllocation allocation)protected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData>ReplicaShardAllocator. fetchData(ShardRouting shard, RoutingAllocation allocation)static PriorityComparatorPriorityComparator. getAllocationComparator(RoutingAllocation allocation)Returns a PriorityComparator that uses the RoutingAllocation index metadata to access the index setting per index.protected static voidGatewayAllocator. innerAllocatedUnassigned(RoutingAllocation allocation, PrimaryShardAllocator primaryShardAllocator, ReplicaShardAllocator replicaShardAllocator)abstract AllocateUnassignedDecisionBaseGatewayShardAllocator. makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)Make a decision on the allocation of an unassigned shard.AllocateUnassignedDecisionPrimaryShardAllocator. makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)AllocateUnassignedDecisionReplicaShardAllocator. makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)voidAsyncShardFetch.FetchResult. processAllocation(RoutingAllocation allocation)Process any changes needed to the allocation based on this fetch result.voidReplicaShardAllocator. processExistingRecoveries(RoutingAllocation allocation)Process existing recoveries of replicas and see if we need to cancel them if we find a better match.
-