📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-7.9

简而言之,当 Elasticsearch 无法获取搜索器实例,可能是由于资源限制或内部问题导致的。造成此错误的原因可能包括:高负载、内存不足,或者软件中存在 bug。要解决此问题,您可以尝试增加系统资源,尤其是增加内存分配,通过优化查询来减少 Elasticsearch 集群的负载,或者将 Elasticsearch 升级到最新版本以修复潜在的 bug。此外,请确保您的 Elasticsearch 集群配置正确,并且没有任何可能导致此问题的网络问题。

日志上下文 #

日志 “failed to acquire searcher; source” 的类名是 Engine.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些需要深入了解上下文的用户参考:

throw ex;
} catch (Exception ex) {
    maybeFailEngine("acquire_searcher", ex);
    ensureOpen(ex); // 如果已关闭,则在此处抛出 EngineCloseException
    logger.error(() -> new ParameterizedMessage("failed to acquire searcher; source {}", source), ex);
    throw new EngineException(shardId, "failed to acquire searcher; source " + source, ex);
} finally {
    Releasables.close(releasable);
}
}