开发者社区 > 大数据与机器学习 > 检索分析服务 Elasticsearch版 > 正文

Elasticsearch如何开启translog异步写入以提高写入速度

已解决

Elasticsearch如何开启translog异步写入以提高写入速度

展开
收起
阿里云服务支持 2022-12-12 14:03:34 303 0
1 条回答
写回答
取消 提交回答
  • 官方回答

    结合数据写入情况,通过下面方式设置translog async落盘:

    PUT my_index

    {

     "settings": {
    
          "index": {
    
               "refresh_interval": "60s",
    
               "translog": {
    
                    "flush_threshold_size": "2gb",
    
                    "sync_interval": "100s",
    
                    "durability": "async"
    
               },
    
               "merge": {
    
                    "policy": {
    
                         "segments_per_tier": "30",
    
                         "max_merged_segment": "256m"
    
                    }
    
               }
    
          }
    
     }
    

    }

    2022-12-12 14:27:07
    赞同 展开评论 打赏

阿里云检索分析服务Elasticsearch版兼容开源ELK功能,免运维全托管,提升企业数据检索与运维分析能力。

相关产品

  • 检索分析服务 Elasticsearch版
  • 热门讨论

    热门文章

    相关电子书

    更多
    阿里云Elasticsearch体系架构与特性解析 立即下载
    开源与云:Elasticsearch应用剖析 立即下载
    《Elasticsearch全观测解决方案》 立即下载