ElasticSearch性能优化
来源:互联网 发布:淘宝直播申请入口关闭 编辑:程序博客网 时间:2024/06/05 19:47
1. 亿级规模的ES查询优化实战
- 能用filter就不用query
- filter拿到相应的doc后不计算score不用排序
- query会对符合条件的doc计算score并进行排序
- filter的查询速度比query快很多
2. 增加相关cache的配置
- indices.cache.filter.size: 30%
- indices.fielddata.cache.size: 60%
- index.cache.field.type: soft
- indices.breaker.fielddata.limit: 70%
3. 优化方案——总结
- 能用filter就不用query
- 增加冗余字段将部分range aggregation查询变成terms aggregation
- 为常用字段增加配置,将fielddata的loading设成eager,尽量多加载到内存
- 增加集群的缓存资源,把内存尽量多的用起来
Global ordinals
Index warmer
调整aggregation的collect_mode
上SSD
elasticsearch一些使用经验以及优化方法
Elasticsearch索引速度优化
index.refresh_interval :-1
index.number_of_shards : X
index.number_of_replicas : 0
index.translog.sync_interval : 30s
index.translog.durability : “async”
index.translog.flush_threshold_size: 4g
index.translog.flush_threshold_ops: 50000
其它
去掉_all字段可节省一半空间
开启索引压缩可节省空间,但会有10%-20%的性能损耗
不需分词的字符串字段设成not_analyzed
1 0
- Elasticsearch写入性能优化
- ElasticSearch性能优化方案
- ElasticSearch性能优化策略
- ElasticSearch性能优化
- Elasticsearch写入性能优化
- Elasticsearch写入性能优化
- Elasticsearch写入性能优化
- elasticsearch关于index性能优化
- Elasticsearch性能优化官方建议
- elasticsearch-索引性能优化技巧
- Elasticsearch + MySQL实现LIKE %XX%性能优化
- elasticsearch性能
- elasticsearch的3个基本问题之性能优化
- 浅谈Solr和ElasticSearch建索引性能优化策略
- elasticSearch系列-elasticSearch优化
- ElasticSearch优化
- LogStash+ElasticSearch性能问题?
- elasticsearch 性能测试
- Android zipalign使用
- 《所有的迷茫困惑,不过是一种局部思维-雾满拦江》
- Android studio(AS)导库操作
- 怎么写存储过程
- js ==与===区别(两个等号与三个等号)
- ElasticSearch性能优化
- 欢迎使用CSDN-markdown编辑器
- (HR2016.2.21 101 Hack 34) Minimum Penalty Path (状压dp)
- python flask发送邮件
- turtlebot刷机
- redis的5种数据结构的使用场景
- UML---序列图和协作图
- caffe安装+Ubuntu16.04+三显卡gpu加速
- C++ pair