问题
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