【问题标题】:Can the value of the enrich.fetch_size Elasticsearch parameter be increased somehow?enrich.fetch_size Elasticsearch 参数的值可以以某种方式增加吗?
【发布时间】:2023-01-28 01:23:34
【问题描述】:

enrich.fetch_size - 将源索引重新索引为丰富索引时的最大批量大小。默认为 10000。

elasticsearch.yml 中的值更改为 ex。 20000,执行ingest policy时出现错误

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Batch size is too large, size must be less than or equal to: [10000] but was [20000]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting."
      }
    ],
    "type" : "search_phase_execution_exception",
    "reason" : "Partial shards failure",
    "phase" : "query",
    "grouped" : true,
    "failed_shards" : [
      {
        "shard" : 0,
        "index" : "name-of-index",
        "node" : "node-id",
        "reason" : {
          "type" : "illegal_argument_exception",
          "reason" : "Batch size is too large, size must be less than or equal to: [10000] but was [20000]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting."
        }
      }
    ]
  },
  "status" : 400
}

【问题讨论】:

    标签: elasticsearch pipeline elk


    【解决方案1】:

    这是一个很常见的错误,我想你还没有重启你的 Elasticsearch 服务器并且没有加载 elasticsearch.yml 的新变化。

    如果重新启动后仍未解决,请共享您的配置文件。将不得不看看它。

    【讨论】:

      猜你喜欢
      • 2017-07-01
      • 1970-01-01
      • 2015-07-05
      • 1970-01-01
      • 2010-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-19
      相关资源
      最近更新 更多