1、直接查询es
curl -XGET 'localhost:9200/
2、热线程
curl 'localhost:9200/_nodes/hot_threads
curl 'localhost:9200/_nodes/hot_threads?type=wait&interval=1s'
3、查看任务
curl XPUT 'localhost:9200/_tasks
4、慢查询设置
curl xPUT 'localhost:9200/index_name/_settings
{
"index.search.slowlog":{
"threshold.query":{
"warn":"1s",
"info":"500ms",
"debug":"0ms"
},
"level":"info"
}
}
日志目录 logs/my_cluster_index_search_slowlog
5、设置监控
curl XPUT 'localhost:9200/_cluster/settings
{
"persistent":{
"xpack.monitoring.collection.enabled": true
}
}
6、缓存设置
index.requests.cache.enable:true
/_stats/request_cache?index
/_nodes/stats/indices/request_cache?index
indices.queries.cache.size
index.queries.cache.enabled
7、查询执行效率
profile:true
elasticsearch
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
相关阅读更多精彩内容
- Elasticsearch常用配置及性能参数 本文转载自https://www.cnblogs.com/kayne...
- 写在前面 接触Elasticsearch已经有几年的时间, 从一开始在自己的普通台式机上搭建单实例来简单记录测试环...
- CURL的操作curl是利用URL语法在命令行方式下工作的开源文件传输工具,使用curl可以简单实现常见的get/...
- 一、下载软件二、elasticsearch常见错误2.1. root用户启动elasticsearch报错2.1....