Lately I noticed that /_nodes/_local/stats command taking my cluster nodes more than 4s to retrieve stats and the cluster seems to be ok. cpu \ load 30% and heap 60-65% avg.
Can you think about reason of why this happen?
In addition, there is anyway to get these stats faster?
Okay. 6000 shards for an 8 GB node is way way way too much. This is something you need to address. Given the fixed per-shard memory overhead I'm surprised your cluster hasn't collapsed.
To answer your original question , yes, node stats will take a very long time with so much cluster metadata. There's not much to do about that except reduce the amount of metadata.
What kind of indexes do you have? Time-series indexes? Multiple such series? Five shards per index?
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.