读书人

拔高elasticsearch索引速度

发布时间: 2013-11-27 21:59:41 作者: rapoo

提高elasticsearch索引速度

提高索引性能和速度从几下方面着手:

?1. 增大索引实时时间设置:index.engine.robin.refresh_interval :10s (默认为1s)?

?2. 增大内存缓冲区:?indices.memory.index_buffer_size:20% (默认为heap大小的10%)

?3. 增加translog方面的设置:?index.translog.flush_threshold:10000 (默认为5000)

?4. 增加分配给ES的内存, 默认为1g.

?5. 减小replaca. 索引时可设置为0. 完成索引后再设置成想要的。?

?6. 增加机器数。

?7.?index.merge.policy.use_compound_file 设置为false. 这样的话, 可以减少Merge (保证open file size 够 大)。

?

?

读书人网 >开源软件

热点推荐