04、es 写入优化

{

"index": {

    "number_of_shards": "10",

    "translog": {

        "flush_threshold_size": "200MB",

        "durability": "async"

    },

    "refresh_interval": "60s"

}

}

“flush_threshold_size”: “200MB”,可以调整成400M。
以及 “refresh_interval”: “60s”
视自己项目情况而定

发布了61 篇原创文章 · 获赞 60 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/ITresource/article/details/103064257
今日推荐