求ES查询性能优化建议
匿名 | 发布于2017年12月14日 | 阅读数:7786
使用ES查询,查询耗时经常有超过1s的情况,最大耗时有10s左右,求性能优化建议
ES服务相关配置参数情况如下:
ES版本2.2.1
服务器参数:单台服务器,1T ssd磁盘,内存64G,JVM参数配置: -Xms10g -Xmx10g
ES中文分词器:ansj
索引_settings主要配置:{
"settings": {
"index": {
"number_of_replicas": "0",
"number_of_shards": "1",
"cache": {
"query": {
"enable": "true"
}
}
}
}
}
其他配置都是默认
索引大小130G左右,索引中文档数量4000万+
ES服务相关配置参数情况如下:
ES版本2.2.1
服务器参数:单台服务器,1T ssd磁盘,内存64G,JVM参数配置: -Xms10g -Xmx10g
ES中文分词器:ansj
索引_settings主要配置:{
"settings": {
"index": {
"number_of_replicas": "0",
"number_of_shards": "1",
"cache": {
"query": {
"enable": "true"
}
}
}
}
}
其他配置都是默认
索引大小130G左右,索引中文档数量4000万+
1 个回复
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自: