Elasticsearch: HOW-TO delete a (cluster) setting

人走茶凉 提交于 2019-12-05 06:20:45
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
    }
}

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.

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

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" } }

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