【问题标题】:Change Index Template Across Elasticsearch Cluster跨 Elasticsearch 集群更改索引模板
【发布时间】:2015-08-20 11:20:31
【问题描述】:

我在 AWS 上运行多个 ES 集群。集群位于由 logstash 提供的 ELB 后面。我在沙盒集群中测试了一个新的映射模板,但只有一个节点。

我已经阅读了这两篇文章:

https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html

https://www.elastic.co/blog/changing-mapping-with-zero-downtime

更改模板时,每个节点都需要更新副本吗?可以将新模板提供给 master,然后共享模板吗?

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    您可以使用_template 端点添加/更新您的模板,所有符合条件的节点都会记录它。

    但是,如果您决定存储该模板 within a file(在 config/templates 文件夹中),那么您必须将该文件存储在所有符合主节点条件的节点上。

    【讨论】:

    • 谢谢!使用 _template 端点进行更改会将更改传播到整个集群
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-09
    • 2022-01-03
    • 1970-01-01
    • 1970-01-01
    • 2010-09-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多