ELK,萌萌哒

如何查看查询缓存

Elasticsearch | 作者 ridethewind | 发布于2019年03月22日 | 阅读数:3773

使用filter 查询,第二次明显比第一次快,理论上是查询缓存启了作用
 
但是我使用如下的命令,发现结果是空的, 这是为什么啊?
indexname/_stats?filter_path=indices.**.cache
 
如何正确的查看查询缓存啊?怎么查看都缓存了些什么呀?
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自:

{indexname}/_stats下可以看到有query_cache和request_cache, 直接执行一下{indexname}/_stats看看, 你上面的filter_path必须为indices.**.request_cache或者indices.**.query_cache才可以

要回复问题请先登录注册