younifyd
Menu

Allocation explain (POST)

Allocation explain

POST/_cluster/allocation/explain

Use it in a workflow

  1. Add a step and choose the OpenSearch connector.
  2. Pick the Allocation explain (POST) action (under cluster).
  3. Fill in the fields below, then reference the result from later steps as {{allocationExplainPost.response.data}}.

Request

Query parameters

include_disk_infoboolean

When `true`, returns information about disk usage and shard sizes.

Default false

include_yes_decisionsboolean

When `true`, returns any `YES` decisions in the allocation explanation. `YES` decisions indicate when a particular shard allocation attempt was successful for the given node.

Default false

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

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

allocate_explanationstring
allocation_delaystring

A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.

allocation_delay_in_millisinteger (int64)

The time unit for milliseconds.

can_allocatestring

One ofallocation_delayedawaiting_infonono_attemptno_valid_shard_copythrottledworse_balanceyes

can_move_to_other_nodestring

One ofallocation_delayedawaiting_infonono_attemptno_valid_shard_copythrottledworse_balanceyes

can_rebalance_clusterstring

One ofallocation_delayedawaiting_infonono_attemptno_valid_shard_copythrottledworse_balanceyes

can_rebalance_cluster_decisionsarray<object>
deciderstringrequired
decisionstringrequired

One ofALWAYSNOTHROTTLEYES

explanationstringrequired
can_rebalance_to_other_nodestring

One ofallocation_delayedawaiting_infonono_attemptno_valid_shard_copythrottledworse_balanceyes

can_remain_decisionsarray<object>
deciderstringrequired
decisionstringrequired

One ofALWAYSNOTHROTTLEYES

explanationstringrequired
can_remain_on_current_nodestring

One ofallocation_delayedawaiting_infonono_attemptno_valid_shard_copythrottledworse_balanceyes

cluster_infoobject
nodesobjectrequired
shard_sizesobjectrequired
shard_data_set_sizesobject
shard_pathsobjectrequired
reserved_sizesarray<object>required4 fields
configured_delaystring

A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.

configured_delay_in_millisinteger (int64)

The time unit for milliseconds.

current_nodeobject
idstringrequired

The unique identifier for a resource.

namestringrequired

The name of a resource or configuration element.

attributesobjectrequired
transport_addressstringrequired

The transport address of a node.

weight_rankinginteger (int32)required
current_statestring
indexstring
move_explanationstring
node_allocation_decisionsarray<object>
decidersarray<object>required3 fields
node_attributesobjectrequired
node_decisionstringrequired

One ofallocation_delayedawaiting_infonono_attemptno_valid_shard_copythrottledworse_balanceyes

node_idstringrequired

The unique identifier for a resource.

node_namestringrequired

The name of a resource or configuration element.

storeobject6 fields
transport_addressstringrequired

The transport address of a node.

weight_rankinginteger (int32)
primaryboolean
rebalance_explanationstring
remaining_delaystring

A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.

remaining_delay_in_millisinteger (int64)

The time unit for milliseconds.

shardinteger (int32)
unassigned_infoobject
atoneOfrequired

A date and time, either as a string whose format depends on the context (defaulting to ISO_8601) or the number of milliseconds since the epoch. OpenSearch accepts both as an input but will generally output a string. representation.

last_allocation_statusstring
reasonstringrequired

One ofALLOCATION_FAILEDCLUSTER_RECOVEREDDANGLING_INDEX_IMPORTEDEXISTING_INDEX_RESTOREDFORCED_EMPTY_PRIMARYINDEX_CREATEDINDEX_REOPENEDMANUAL_ALLOCATIONNEW_INDEX_RESTOREDNODE_LEFTPRIMARY_FAILEDREALLOCATED_REPLICAREINITIALIZEDREPLICA_ADDEDREROUTE_CANCELLED

detailsstring
failed_allocation_attemptsinteger (int32)
delayedboolean
allocation_statusstring
notestring
json
{
  "current_state": "string",
  "index": "string",
  "primary": false,
  "shard": 0,
  "allocate_explanation": "string",
  "allocation_delay": "string",
  "allocation_delay_in_millis": 0,
  "can_allocate": "allocation_delayed",
  "can_move_to_other_node": "allocation_delayed",
  "can_rebalance_cluster": "allocation_delayed",
  "can_rebalance_cluster_decisions": [
    {
      "decider": "string",
      "decision": "ALWAYS",
      "explanation": "string"
    }
  ],
  "can_rebalance_to_other_node": "allocation_delayed"
}

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