AWS OpenSearch(ES)启用慢速日志

问题

最近有个搜索请求超过了29秒,想要排查一下这个问题。

思路

启用ES(AWS OpenSearch)搜索慢速日志,看看到底发生了什么问题。

控制台启用慢速日志组

设置慢速日志阀值

bash 复制代码
# 查看搜索请求慢速日志阈值
GET _cluster/settings?flat_settings

# 设置搜索请求慢速日志阈值
PUT /_cluster/settings
{
  "transient": {
    "cluster.search.request.slowlog.threshold.warn": "5s",
    "cluster.search.request.slowlog.threshold.info": "2s"
  }
}

# 查询索引搜索请求慢速日志阀值
GET 索引前缀*/_settings?pretty

# 设置分片慢速日志阈值
PUT 索引前缀*/_settings
{
  "index.search.slowlog.threshold.query.warn": "5s",
  "index.search.slowlog.threshold.query.info": "2s"
}

如果觉得这两个日志影响集群性能,可以设置会原来默认值-1即可。

参考

相关推荐
Eloudy2 小时前
Qwen2.5-14B-Instruct-AWQ 模型文件结构分析
大数据·elasticsearch·搜索引擎
yyuuuzz7 小时前
云服务器安全组规则优先级的机制记录
运维·服务器·网络·安全·阿里云·aws
YIN_尹9 小时前
【git原理与使用】git初识与安装
大数据·git·elasticsearch
Elastic 中国社区官方博客14 小时前
Elastic 在《Forrester Wave™:2026 年第四季度智能运维平台》报告中被评为强劲表现者
大数据·运维·数据库·elasticsearch·搜索引擎·全文检索
Elasticsearch15 小时前
Elastic Cloud 无服务器服务审计日志:将审计记录发送到可观测性或安全解决方案
elasticsearch
zwjapple1 天前
skill总结
大数据·elasticsearch·搜索引擎
阿里云大数据AI技术1 天前
云栖实录|从代码上下文到千亿级文档:Qoder × 阿里云 Elasticsearch 落地生产级Agent向量检索
人工智能·elasticsearch
Elastic 中国社区官方博客1 天前
使用 OpenTelemetry 在 Elastic 中实现 Claude 平台的人工智能 agent 可观测性
大数据·运维·服务器·人工智能·elasticsearch·信息可视化·全文检索
Elastic 中国社区官方博客2 天前
Elastic 重大事件功能如何将 100 条日志样本转化为检测规则
大数据·运维·数据库·人工智能·elasticsearch·搜索引擎
Elasticsearch3 天前
使用 OpenTelemetry 在 Elastic 中实现 Claude 平台的人工智能 agent 可观测性
elasticsearch