首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

拔高elasticsearch索引速度

2013-11-27 
提高elasticsearch索引速度提高索引性能和速度从几下方面着手:?1. 增大索引实时时间设置:index.engine.rob

提高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 够 大)。

?

?

热点排行