1 Star 0 Fork 0

木易/elasticsearch-definitive-guide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
10_dynamic_settings.asciidoc 1.31 KB
一键复制 编辑 原始数据 按行查看 历史

Changing Settings Dynamically

Many settings in Elasticsearch are dynamic and can be modified through the API. Configuration changes that force a node (or cluster) restart are strenuously avoided. And while it’s possible to make the changes through the static configs, we recommend that you use the API instead.

The cluster-update API operates in two modes:

Transient

These changes are in effect until the cluster restarts. Once a full cluster restart takes place, these settings are erased.

Persistent

These changes are permanently in place unless explicitly changed. They will survive full cluster restarts and override the static configuration files.

Transient versus persistent settings are supplied in the JSON body:

PUT /_cluster/settings
{
    "persistent" : {
        "discovery.zen.minimum_master_nodes" : 2 (1)
    },
    "transient" : {
        "indices.store.throttle.max_bytes_per_sec" : "50mb" (2)
    }
}
  1. This persistent setting will survive full cluster restarts.

  2. This transient setting will be removed after the first full cluster restart.

A complete list of settings that can be updated dynamically can be found in the {ref}/cluster-update-settings.html[online reference docs].

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangguilong/elasticsearch-definitive-guide.git
git@gitee.com:yangguilong/elasticsearch-definitive-guide.git
yangguilong
elasticsearch-definitive-guide
elasticsearch-definitive-guide
master

搜索帮助