elasticsearch占用100%的cpu

jm81lzqq  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(0)|浏览(810)

我在这个硬件上有3节点elasticsearch群集(7个版本):
vcpu:8个
ram 16(8gb堆)
磁盘ssd 300gb
操作系统centos 7
因此,在我的集群中,我总共有24个vcpu、48个ram和1,2tb。
我有70个索引(所有索引都有3个主碎片和1个副本),每个索引大约是25gb。
这个集群用于存储来自我们的服务(efk堆栈)的日志,我们有kibana和logtrail来可视化webui中的日志。
我有一个cpu瓶颈:
下面是top命令的输出

PID    USER     PR  NI    VIRT    RES    SHR S  %CPU  %MEM    TIME+     COMMAND
15995 elastic+  20   0   92,2g  10,1g   1,3g S  640,0  64,9   269:27.70  java

正如你在这里看到的,elasticsearch进程耗尽了我所有的cpu。
输出自 GET /_nodes/hot_threads ```
curl 9.9.9.9:9200/_nodes/hot_threads
::: {10.0.87.160}{xPDGrNNmR962Mf51smGWQQ}{T6VTDspVSuujxVgi8KnuTg}{10.0.87.160}{10.0.87.160:9300}{dim}{xpack.installed=true}
Hot threads at 2020-09-18T07:59:48.726Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true:
100.2% (501.1ms out of 500ms) cpu usage by thread 'elasticsearch[10.0.87.160][search][T#1]'
2/10 snapshots sharing following 43 elements
app//org.apache.lucene.codecs.blocktree.IntersectTermsEnum._next(IntersectTermsEnum.java:510)
app//org.apache.lucene.codecs.blocktree.IntersectTermsEnum.next(IntersectTermsEnum.java:353)

因此,正如您在这里看到的,搜索线程很热,占用了100%的cpu,但是es slowlog文件是空的,那么问题出在哪里呢?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题