Hi we have next kibana settings:
GET /.kibana/_settings
{
".kibana_2" : {
"settings" : {
"index" : {
"number_of_shards" : "1",
"auto_expand_replicas" : "false",
"provided_name" : ".kibana_2",
"max_result_window" : "10000",
"creation_date" : "1601638664184",
"number_of_replicas" : "0",
"uuid" : "WKdIpzLFSP-ydObLWd30SV",
"version" : {
"created" : "7090299"
}
}
}
}
}
Where:
"number_of_replicas" : "0",
"auto_expand_replicas" : "false",
We use only one node.
But when we run we see that we have unassigned_shards 44:
GET /_cluster/health?pretty
"unassigned_shards" : 44,
And number of the unassigned shards continues to grow.
When we are trying to get information of the reason unassigned shards we recieve next answer.
GET _cluster/allocation/explain?filter_path=index,node_allocation_decisions.node_name,node_allocation_decisions.deciders.*
{
"index": "test-2024.06.18",
"shard": 0,
"primary": false
}
We receive the next answer:
{
"index" : "test-2024.06.18",
"node_allocation_decisions" : [
{
"node_name" : "es01",
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "a copy of this shard is already allocated to this node [[test-2024.06.18][0], node[JaLP5vTvS9qtLpLKSnzrjQ], [P], s[STARTED], a[id=rtJ9KfzqSRCFAyO4HD34Pg]]"
}
]
}
]
}
How we can stop the growth of the unassigned_shards?
And what we can do with unassigned_shards that we have already? (unassigned_shards : 44). with explanation : a copy of this shard is already allocated to this node ?