es故障诊断方法
1、profile定位慢查询
curl -XPOST http://local:9200/myindex/mytype/_search -d '{
"profile": true,
"query":{
"match":{
"brand": "cotton Plus"
}
}
}
2、使用explain分析未分配索引
GET /_cluster/allocation/explain
3、节点cpu使用率高
a.hot_threads API
b.top+jstack
4、节点内存使用率高
jmap
5、slow logs
6、相关工具
iostat
top、free、vmstat
mpstat
strace
perf top
sar
netstat
sysdig