【问题标题】:Getting error index.max_inner_result_window during rolling upgrade of ES from 5.6.10 to 6.8.10在将 ES 从 5.6.10 滚动升级到 6.8.10 期间出现错误 index.max_inner_result_window
【发布时间】:2020-11-13 04:00:22
【问题描述】:

我在一个 ES 集群中有 2 个数据节点和 3 个主节点。我正在按照 ES 建议从 5.6.10 迁移到 6.8.10 进行滚动升级。

由于停机时间应该为零,我正在测试它并遇到一个错误。

我已经升级了 1 个数据节点并进行了基本的搜索测试。它工作正常。当我升级第二个节点搜索时出现以下错误。

java.lang.IllegalArgumentException: Top hits result window is too large, the top hits aggregator [top]'s from + size must be less than or equal to: [100] but was [999]. This limit can be set by changing the [index.max_inner_result_window] index level setting.

index.max_inner_result_window -- 该属性在6.X版本引入,主节点还在5.6.10。那么停机时间为 0 的解决方案是什么?

注意:我的索引已完全停止。我的 2 个数据节点现在在 6.8.10 上,主节点在 5.6 上。

谢谢

【问题讨论】:

    标签: elasticsearch search elastic-stack elasticsearch-6.8


    【解决方案1】:

    1 - 更改当前索引的参数:

    curl -X PUT "http://localhost:9200/_all/_settings?pretty" -H 'Content-Type: application/json' -d'
    {
      "index.max_inner_result_window": "2147483647"
    }
    '
    

    2 - 创建模板以进一步索引:

    curl -X PUT "http://localhost:9200/_index_template/template_max_inner_result?pretty" -H 'Content-Type: application/json' -d'
    {
      "index_patterns": ["*"],
      "template": {
        "settings": {
          "index":{
            "max_inner_result_window": 2147483647
          }
        }
      }
    }
    '
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-26
      • 2020-06-22
      • 1970-01-01
      • 2022-08-17
      • 1970-01-01
      相关资源
      最近更新 更多