I am running 2 node Elasticsearch cluster v7.9.2
Ingesting data through APM-Server v7.15.0, creates ~50 new indices daily with pattern
apm-7.15.0-<service.name>-transaction-YYYY.MM.DD
Observing that all new primary shards of new indices are getting created on 1 node, even though the free disk space % is lesser than the other node.
How do I make the allocation of shards equally on both nodes ?
How can I assign the allocation for a certain index pattern on a particular node.
Below is the cluster setting
"persistent" : {
"cluster" : {
"routing" : {
"rebalance" : {
"enable" : "primaries"
},
"allocation" : {
"node_concurrent_incoming_recoveries" : "5",
"node_concurrent_recoveries" : "5",
"disk" : {
"watermark" : {
"low" : "75%",
"flood_stage" : "90%",
"high" : "80%"
}
},
"enable" : "primaries"
}
},
"max_shards_per_node" : "3000"
},
"xpack" : {
"monitoring" : {
"collection" : {
"enabled" : "true"
}
}
}