Today my ES cluster on Elastic cloud frozen due to high CPU consumption. There was not too much pressure with requests so I took a look at indexes to check if there is some problem.
I found a lot of old indexes from apm that were almost empty but of course they took 1 shard for each one.
After a bit of cleaning I arrived to this point:
213 indexes (only 10 are mine, the other are kibana and hidden indexes)
That sounds like a pretty reasonable size, yes. I don't think those indices use ILM as yet, but they will roll over per day which is why they are date named.
As for if they'd cause an issue, that's hard to say. What is the output from the _cluster/stats?pretty&human API?
A couple thoughts it is generally not best practice to send your cluster monitoring data to the same cluster as your search data / workload... Architecture principal of separation of concerns. See Here
I see from the pastebin that you are are running a Single 2GB RAM / 60GB SSD Node. That is a very small but functional cluster.
BUT I also noticed you have ~213 Indices with 213 Shards. That is a very high number of shards for such a small node. Generally we suggest fewer than 20 shards per 1GB of JVM Heap... you have 1GB JVM heap so you are 10x over the number of best practice shards.
You will most likely run into performance issues unless you reduce the number of indices / shards or increase the size of your nodes.
Thanks Stephen, your suggestions are really appreciated. I know about the monitoring data and I had in plan to buy another cluster to send them.
About the 213 shards, I see what you mean but the point is I've just 10 indexes with 10 shards. The remaining 203 are indexes created from kibana and ES and are almost empty/not used.
Do you suggest to delete them? Could you suggest a secure index patter in order to remove only indexes that are not needed?
Except node monitoring I don't need to much else, I don't use Kibana if not for manager the cluster and see monitoring.
Thanks, for sure I'm not using them but I'm not sure if they are needed from Kibana itself. I'm on Elastic cloud.
Where can I find a matrix of all ELK index patterns ? My fear is to delete some index that is used in this Elastic cloud configuration and to break something (more than 200 indexes are hidden and so system index, when I try to delete them I've a scary alert )
You can safely delete .monitoring* though, your history will be gone but it'll recreate. The same with that Kibana log one.
Also if you're on 7.15 then you can look to delete things with an earlier version in the name.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.