在kibana的開發(fā)工具中操作
1、#限制大批量聚合操作
PUT /_cluster/settings
{"persistent": { "search.max_buckets": 40000 }}
2、#手動清除scroll
DELETE _search/scroll/_all
3、查看集群狀態(tài)
curl http://192.168.18.13:9200/_cluster/health?pretty
curl http://192.168.18.13:9200/_cat/nodes?v
curl http://192.168.18.13:9200/_cat/indices?v
curl http://192.168.18.13:9200/_cat/indices?v | grep "^red"
4、不同角色資源分配
elasticsearch 的不同角色的節(jié)點的 資源分配的問題
5、es分片爆滿
PUT /_cluster/settings
{
"transient": {
"cluster": {
"max_shards_per_node":12000
}
}
}