younifyd
Menu

Explain the shard allocations (GET)

Explain the shard allocations

GET/_cluster/allocation/explain

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Explain the shard allocations (GET) action (under cluster).
  3. Fill in the fields below, then reference the result from later steps as {{explainTheShardAllocationsGet.response.data}}.

Request

Query parameters

indexstring

The name of the index that you would like an explanation for.

shardnumber

An identifier for the shard that you would like an explanation for.

primaryboolean

If true, returns an explanation for the primary shard for the specified shard ID.

current_nodestring

Explain a shard only if it is currently located on the specified node name or node ID.

include_disk_infoboolean

If true, returns information about disk usage and shard sizes.

include_yes_decisionsboolean

If true, returns YES decisions in explanation.

master_timeoutoneOf

Period to wait for a connection to the master node.

Response

Returns 200 with an object. Read it in later steps with {{explainTheShardAllocationsGet.response.data.<field>}}.

allocate_explanationstring
allocation_delayany
allocation_delay_in_millisany
can_allocateany
can_move_to_other_nodeany
can_rebalance_clusterany
can_rebalance_cluster_decisionsarray<object>
deciderstringrequired
decisionanyrequired
explanationstringrequired
can_rebalance_to_other_nodeany
can_remain_decisionsarray<object>
deciderstringrequired
decisionanyrequired
explanationstringrequired
can_remain_on_current_nodeany
cluster_infoany
configured_delayany
configured_delay_in_millisany
current_nodeany
current_statestring
indexany
move_explanationstring
node_allocation_decisionsarray<object>
decidersarray<object>3 fields
node_attributesobjectrequired
node_decisionanyrequired
node_idanyrequired
node_nameanyrequired
rolesanyrequired
storeany
transport_addressanyrequired
weight_rankingnumber
primaryboolean
rebalance_explanationstring
remaining_delayany
remaining_delay_in_millisany
shardnumber
unassigned_infoany
notestring
json
{
  "current_state": "string",
  "index": null,
  "primary": false,
  "shard": 0,
  "allocate_explanation": "string",
  "allocation_delay": null,
  "allocation_delay_in_millis": null,
  "can_allocate": null,
  "can_move_to_other_node": null,
  "can_rebalance_cluster": null,
  "can_rebalance_cluster_decisions": [
    {
      "decider": "string",
      "decision": null,
      "explanation": "string"
    }
  ],
  "can_rebalance_to_other_node": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.