在kibana的开发工具中操作
1、#限制大批量聚合操作
PUT /_cluster/settings
{"persistent": { "search.max_buckets": 40000 }}
2、#手动清除scroll
DELETE _search/scroll/_all
3、查看集群状态
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 的不同角色的节点的 资源分配的问题
5、es分片爆满
PUT /_cluster/settings
{
"transient": {
"cluster": {
"max_shards_per_node":12000
}
}
}