根据elasticsearch参考中的this article。我们可以使用cluster-update-settings为活动集群动态更新以下设置。
indices.recovery.file_chunk_size
indices.recovery.translog_ops
indices.recovery.translog_size
但是当我尝试更新以上任何内容时,我收到以下错误:
PUT /_cluster/settings
{
"transient" : {
"indices.recovery.file_chunk_size" : "5mb"
}
}
响应:
"type": "illegal_argument_exception",
"reason": "transient setting [indices.recovery.file_chunk_size], not dynamically updateable"
他们是否改变了这一点,并没有更新参考文章,或者我错过了什么?我正在使用 Elasticsearch 5.0.2
答案 0 :(得分:2)
它们已在this pull request中删除:
- indices.recovery.file_chunk_size - 现已修复为512kb
- indices.recovery.translog_ops - 已移除而无需替换
- indices.recovery.translog_size - 现已修复为512kb
- indices.recovery.compress - 由于lucene的压缩而没有压缩文件块,但是translog操作是。
但我很惊讶它没有反映在文档中。