Elasticsearch: HOW-TO delete a (cluster) setting

谁都会走 提交于 2019-12-10 04:21:13

问题


my current luster configuration settings look like this :

{
  "persistent": {
    "indices": {
      "store": {
        "throttle": {
          "type": "none",
          "max_bytes_per_sec": "150mb"
        }
      }
    }
  },
  "transient": {}
}

and am wondering how can i delete the "max_bytes_per_sec" part of the settings.

could you please advise on this one ?


回答1:


Resetting persistent or transient settings can be done by assigning a null value.

Refer: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-update-settings.html

in your case it would be

PUT /_cluster/settings
{
    "persistent" : {
        "indices.store.throttle.max_bytes_per_sec" : null
    }
}



回答2:


alright. i found how to delete a persistent setting: you go to the defined data path of the master node, more specifically, nodes/0/_state (in my case) and you delete the global state file. then restart elasticsearch.




回答3:


Per documentation this is now (Elasticsearch 5.5) possible via the following:

Resetting persistent or transient settings can be done by assigning a null value.

See https://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-update-settings.html




回答4:


Here is the example from ES documentation:

PUT /_cluster/settings { "persistent" : { "indices.store.throttle.max_bytes_per_sec" : "100mb" } }

and

PUT /_cluster/settings { "transient" : { "indices.store.throttle.type" : "none" } }



来源:https://stackoverflow.com/questions/33520384/elasticsearch-how-to-delete-a-cluster-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!