In my elastic search cluster, some nodes are red while some of them are yellow. The point is only beats indices are affected. So i executed curl localhost:9200/_cluster/allocation/explain
The output
{
"index": "filebeat-7.6.0-2020.02.22",
"shard": 0,
"primary": false,
"current_state": "unassigned",
"unassigned_info": {
"reason": "CLUSTER_RECOVERED",
"at": "2020-02-29T23:19:30.698Z",
"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": "THJOod5tSUGcF23uhLuKfw",
"node_name": "node-1",
"transport_address": "192.168.43.22:9300",
"node_attributes": {
"ml.machine_memory": "4136235008",
"xpack.installed": "true",
"ml.max_open_jobs": "20"
},
"node_decision": "no",
"deciders": [
{
"decider": "same_shard",
"decision": "NO",
"explanation": "the shard cannot be allocated to the same node on which a copy of the shard already exists [[filebeat-7.6.0-2020.02.22][0], node[THJOod5tSUGcF23uhLuKfw], [P], s[STARTED], a[id=1jY1u__lRNKYGDibSFoWcg]]"
}
]
}
]
}
Screenshor of some indices