When I identify the problem by
curl -XGET localhost:9200/_cluster/allocation/explain?pretty
output is
{
"index" : ".ds-ilm-history-5-2022.05.17-000013",
"shard" : 0,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "CLUSTER_RECOVERED",
"at" : "2022-05-17T10:59:47.050Z",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "no",
"allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
"node_allocation_decisions" : [
{
"node_id" : "8S3wqTdGRHq7a7XWWHEyzQ",
"node_name" : "elasticsearch-master-0",
"transport_address" : "172.31.46.214:9300",
"node_attributes" : {
"ml.machine_memory" : "2147483648",
"ml.max_open_jobs" : "20",
"xpack.installed" : "true",
"ml.max_jvm_size" : "1073741824",
"transform.node" : "true"
},
"node_decision" : "no",
"deciders" : [
{
"decider" : "replica_after_primary_active",
"decision" : "NO",
"explanation" : "primary shard for this replica is not yet active"
},
{
"decider" : "throttling",
"decision" : "NO",
"explanation" : "primary shard for this replica is not yet active"
}
]
},
{
"node_id" : "DbnhybKiRjSc4dgBomSjZw",
"node_name" : "elasticsearch-master-1",
"transport_address" : "172.31.30.203:9300",
"node_attributes" : {
"ml.machine_memory" : "2147483648",
"ml.max_open_jobs" : "20",
"xpack.installed" : "true",
"ml.max_jvm_size" : "1073741824",
"transform.node" : "true"
},
"node_decision" : "no",
"deciders" : [
{
"decider" : "replica_after_primary_active",
"decision" : "NO",
"explanation" : "primary shard for this replica is not yet active"
},
{
"decider" : "throttling",
"decision" : "NO",
"explanation" : "primary shard for this replica is not yet active"
}
]
},
{
"node_id" : "OLvyXR_rTq-H6DqK0OWceQ",
"node_name" : "elasticsearch-master-2",
"transport_address" : "172.31.53.196:9300",
"node_attributes" : {
"ml.machine_memory" : "2147483648",
"ml.max_open_jobs" : "20",
"xpack.installed" : "true",
"ml.max_jvm_size" : "1073741824",
"transform.node" : "true"
},
"node_decision" : "no",
"deciders" : [
{
"decider" : "replica_after_primary_active",
"decision" : "NO",
"explanation" : "primary shard for this replica is not yet active"
},
{
"decider" : "throttling",
"decision" : "NO",
"explanation" : "primary shard for this replica is not yet active"
}
]
}
]
}
primary shard for this replica is not yet active