elasticsearch导入速度优化

导入时瓶颈在硬盘io上,网上推荐的参数有:
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

实际测试只要修改durability就可以飞速了.
PUT _all/_settings?preserve_existing=true
{
“index.translog.durability” : “async”
}

恢复: 少了preserve_existing=true
PUT _all/_settings
{
“index.translog.durability” : “request”
}

猜你喜欢

转载自blog.csdn.net/langouster/article/details/89843545
今日推荐