Elasticsearch:如何删除(集群)设置
Elasticsearch: HOW-TO delete a (cluster) setting
我当前的光泽配置设置如下所示:
{
"persistent": {
"indices": {
"store": {
"throttle": {
"type": "none",
"max_bytes_per_sec": "150mb"
}
}
}
},
"transient": {}
}
我想知道如何删除设置的 "max_bytes_per_sec" 部分。
能否请您就此提出建议?
这是 ES 文档中的示例:
PUT /_cluster/settings {
"persistent" : {
"indices.store.throttle.max_bytes_per_sec" : "100mb"
} }
和
PUT /_cluster/settings {
"transient" : {
"indices.store.throttle.type" : "none"
} }
好的。我找到了如何删除持久设置:
您转到主节点的定义数据路径,
更具体地说,nodes/0/_state
(在我的例子中)
然后删除全局状态文件。然后重启elasticsearch。
根据文档,现在(Elasticsearch 5.5)可以通过以下方式实现:
Resetting persistent or transient settings can be done by assigning a null value.
见https://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-update-settings.html
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
}
}
我当前的光泽配置设置如下所示:
{
"persistent": {
"indices": {
"store": {
"throttle": {
"type": "none",
"max_bytes_per_sec": "150mb"
}
}
}
},
"transient": {}
}
我想知道如何删除设置的 "max_bytes_per_sec" 部分。
能否请您就此提出建议?
这是 ES 文档中的示例:
PUT /_cluster/settings { "persistent" : { "indices.store.throttle.max_bytes_per_sec" : "100mb" } }
和
PUT /_cluster/settings { "transient" : { "indices.store.throttle.type" : "none" } }
好的。我找到了如何删除持久设置:
您转到主节点的定义数据路径,
更具体地说,nodes/0/_state
(在我的例子中)
然后删除全局状态文件。然后重启elasticsearch。
根据文档,现在(Elasticsearch 5.5)可以通过以下方式实现:
Resetting persistent or transient settings can be done by assigning a null value.
见https://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-update-settings.html
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
}
}