【问题标题】:Increase master timeout for create index elastic search增加创建索引弹性搜索的主超时
【发布时间】:2019-11-25 18:41:55
【问题描述】:

我在创建索引期间遇到如下超时异常。

Exception: System.Exception: Error creating index '[metadata]-[content].[292]-[]-[1]': Status: 503, Type: process_cluster_event_timeout_exception, Error: Type: process_cluster_event_timeout_exception Reason: "failed to process cluster event (create-index [[metadata]-[content].[292]-[]-[1]], cause [api]) within 30s"

我想知道增加主超时是否有帮助?如果是的话怎么做?

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    尝试使用PUT my_index?master_timeout=60s创建索引

    默认设置为 30s

    我希望此查询参数与您的版本相关。

    From Here

    【讨论】:

    • 我在 elasticsearch.yml 中没有看到这个,我应该添加这个吗?
    • 是的,您应该添加它以覆盖默认值。但我不确定这是解决这个问题的方法(通过增加超时)。也许您应该增加每个节点的线程数的堆大小。
    • 2019-11-25 15:54:11 Commons Daemon procrun stderr initialized 线程“main”ception中的异常:未知设置[cluster.publish.timeout]请检查是否安装了任何必需的插件,或者检查已删除设置的重大更改文档
    • 你的版本是什么?
    • 版本为 5.6.8
    猜你喜欢
    • 1970-01-01
    • 2019-09-28
    • 2022-08-17
    • 2014-09-01
    • 2020-08-16
    • 2017-07-29
    • 1970-01-01
    • 1970-01-01
    • 2017-08-01
    相关资源
    最近更新 更多