How do I resolve the below unassigned shards ?
What exactly happened - one of the node in the cluster was down for 2days and I bought the node back again.
After above issue - I could see shards got unassigned.
Again I have bought down another node because of disk space issue, allocation is not happening for few shards. I dont want this node back again, as I have added another alternative node.
_cluster/allocation/explain?pretty
output:
{
"index": "prodtemp",
"shard": 0,
"primary": false,
"current_state": "unassigned",
"unassigned_info": {
"reason": "NODE_LEFT",
"at": "2021-03-20T19:27:19.950Z",
"details": "node_left [4cZwIGYbTYe5YTMQpg1fBg]",
"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": "xxxxxxxxxxxxxxxxxxxx",
"node_name": "xxxxxxxxxxx",
"transport_address": "xx.xx.1.xx:9300",
"node_attributes": {
"ml.machine_memory": "33731194880",
"xpack.installed": "true",
"transform.node": "true",
"ml.max_open_jobs": "20"
},
"node_decision": "no",
"deciders": [
{
"decider": "node_version",
"decision": "NO",
"explanation": "cannot allocate replica shard to a node with version [7.9.2] since this is older than the primary version [7.11.2]"
}
]
},
{
"node_id": "xxxxxxxxxxxxxx",
"node_name": "yyyyyyyyyyyyy",
"transport_address": "xx.xx.1.xxx:9300",
"node_attributes": {
"ml.machine_memory": "33731170304",
"ml.max_open_jobs": "20",
"xpack.installed": "true",
"transform.node": "true"
},
"node_decision": "no",
"deciders": [
{
"decider": "node_version",
"decision": "NO",
"explanation": "cannot allocate replica shard to a node with version [7.10.1] since this is older than the primary version [7.11.2]"
}
]
},
{
"node_id": "xxxxxxx",
"node_name": "zzzzzzzzzzzzz",
"transport_address": "xx.xxx.1.xx:9300",
"node_attributes": {
"ml.machine_memory": "33731194880",
"ml.max_open_jobs": "20",
"xpack.installed": "true",
"transform.node": "true"
},
"node_decision": "no",
"deciders": [
{
"decider": "node_version",
"decision": "NO",
"explanation": "cannot allocate replica shard to a node with version [7.9.2] since this is older than the primary version [7.11.2]"
}
]
},
{
"node_id": "xx55555",
"node_name": "aaaaaaaaaaaaaa",
"transport_address": "xx.xxx.1.xx:9300",
"node_attributes": {
"ml.machine_memory": "33731174400",
"ml.max_open_jobs": "20",
"xpack.installed": "true",
"ml.max_jvm_size": "21474836480",
"transform.node": "true"
},
"node_decision": "no",
"deciders": [
{
"decider": "same_shard",
"decision": "NO",
"explanation": "a copy of this shard is already allocated to this node [[prodtempcstempdata][0], node[lwFqKkuPQPm3_UYN9DU9VQ], [P], s[STARTED], a[id=w-uD-aw_RvWCYG47uvR88w]]"
}
]
}
]
}