Index shard status
GET /_cat/shards/document-2019.10?v
index shard prirep state docs store ip node
document-2019.10 4 p STARTED 21 181.5kb es-node-2
document-2019.10 4 r STARTED 21 181.5kb es-node-3
document-2019.10 5 r STARTED 20 195.4kb es-node-2
document-2019.10 5 p STARTED 20 195.4kb es-node-3
document-2019.10 3 p STARTED 14 166.2kb es-node-1
document-2019.10 3 r STARTED 14 166.2kb es-node-2
document-2019.10 1 r STARTED 18 245.9kb es-node-1
document-2019.10 1 p STARTED 18 245.9kb es-node-2
document-2019.10 2 r STARTED 11 109.4kb es-node-1
document-2019.10 2 p STARTED 11 109.4kb es-node-2
document-2019.10 0 p STARTED 14 166kb es-node-1
document-2019.10 0 r STARTED 14 166kb es-node-2
Cluster allocation explain
GET /_cluster/allocation/explain
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"
}
],
"type": "illegal_argument_exception",
"reason": "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"
},
"status": 400
}
Index settings
GET document-2019.10/_settings
{
"document-2019.10" : {
"settings" : {
"index" : {
"lifecycle" : {
"name" : "my-ilm-policy"
},
"routing" : {
"allocation" : {
"require" : {
"box_type" : "warm"
}
}
},
"number_of_shards" : "6",
"provided_name" : "document-2019.10",
"creation_date" : "1570703493600",
"priority" : "50",
"number_of_replicas" : "1",
"uuid" : "eLNWEqF6SbqfGcztJq8byQ",
"version" : {
"created" : "7030299"
}
}
}
}
}
Index Template
GET _template/my-index-template
{
"grid-index-template" : {
"order" : 0,
"index_patterns" : [
"",
"-."
],
"settings" : {
"index" : {
"lifecycle" : {
"name" : "grid-ilm-policy"
},
"number_of_shards" : "6"
}
},
"mappings" : { },
"aliases" : { }
}
}
ILM Explain
GET document-2019.10/_ilm/explain
{
"indices" : {
"document-2019.10" : {
"index" : "document-2019.10",
"managed" : true,
"policy" : "my-ilm-policy",
"lifecycle_date_millis" : 1570703493600,
"phase" : "warm",
"phase_time_millis" : 1570707576602,
"action" : "allocate",
"action_time_millis" : 1570708176858,
"step" : "check-allocation",
"step_time_millis" : 1570708176989,
"step_info" : {
"message" : "Waiting for [6] shards to be allocated to nodes matching the given filters",
"shards_left_to_allocate" : 6,
"all_shards_active" : true,
"actual_replicas" : 1
},
"phase_execution" : {
"policy" : "my-ilm-policy",
"phase_definition" : {
"min_age" : "1h",
"actions" : {
"allocate" : {
"number_of_replicas" : 1,
"include" : { },
"exclude" : { },
"require" : {
"box_type" : "warm"
}
},
"shrink" : {
"number_of_shards" : 1
},
"set_priority" : {
"priority" : 50
}
}
},
"version" : 5,
"modified_date_in_millis" : 1570695626874
}
}
}
}