美文网首页
动态参数设定

动态参数设定

作者: 大闪电啊 | 来源:发表于2019-09-30 09:55 被阅读0次

    elasticsearch.yml中尽量只写必备的参数,其他可以通过api动态设置的参数都通过api来设定

    动态设定的参数有transient和persistent两种设置,
    前者在集群重启后会丢失,后者不会,但两种设定都会覆盖elasticsearch.yml中的配置。

    PUT /_cluster/settings
    {
      "persistent": {
        "discovery.zen.minimum_master_nodes":2
      },
      "transient": {
        "indices.store.throttle.max_bytes_per_sec":"50mb" 
      }
    }
    
    

    相关文章

      网友评论

          本文标题:动态参数设定

          本文链接:https://www.haomeiwen.com/subject/tknujqtx.html