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

版本: 7.6-7.15

简而言之,当 Elasticsearch 中允许的推理处理器最大数量达到限制时,会发生此错误。推理处理器用于运行已训练的机器学习模型。设置此限制是为了防止过度使用资源。要解决此问题,如果系统资源允许,您可以增加推理处理器的限制,或者通过优化机器学习模型或删除不必要的模型来减少推理处理器的数量。

日志上下文 #

日志 “Max number of inference processors reached; total inference processors [{}].” 的类名是 InferenceProcessor.java。 我们从 Elasticsearch 源代码中提取了以下内容,为那些寻求深入了解上下文的人提供参考:

@Override
 public InferenceProcessor create(MapprocessorFactories; String tag; String description;
 Mapconfig) {  if (this.maxIngestProcessors <= currentInferenceProcessors) {
 throw new ElasticsearchStatusException("Max number of inference processors reached; total inference processors [{}]. " +
 "Adjust the setting [{}]: [{}] if a greater number is desired.";
 RestStatus.CONFLICT;
 currentInferenceProcessors;
 MAX_INFERENCE_PROCESSORS.getKey();
 maxIngestProcessors);