小编Rag*_*har的帖子

“[circuit_breaking_exception] [parent]”数据太大,“[<http_request>]”的数据会出错

在顺利工作了 10 多个月之后,我在进行简单的搜索查询时突然开始在生产中出现此错误。

{
  "error" : {
    "root_cause" : [
      {
        "type" : "circuit_breaking_exception",
        "reason" : "[parent] Data too large, data for [<http_request>] would be [745522124/710.9mb], which is larger than the limit of [745517875/710.9mb]",
        "bytes_wanted" : 745522124,
        "bytes_limit" : 745517875
      }
    ],
    "type" : "circuit_breaking_exception",
    "reason" : "[parent] Data too large, data for [<http_request>] would be [745522124/710.9mb], which is larger than the limit of [745517875/710.9mb]",
    "bytes_wanted" : 745522124,
    "bytes_limit" : 745517875
  },
  "status" : 503
}
Run Code Online (Sandbox Code Playgroud)

最初,我在执行简单术语查询时遇到此错误,当我收到此circuit_breaking_exception错误时,为了调试此错误,我在 elasticsearch …

node.js elasticsearch

15
推荐指数
1
解决办法
2万
查看次数

如何修复“文档映射类型名称不能以'_'开头,找到:[_create]_”elasticsearch?

我正在使用 Nodejs 将一些数据索引到 Elasticsearch(托管在 kubernetes 上),我正在使用client.create()方法在 Elasticsearch 中索引文档。如果我在 localhost 和 kubernetes Elasticsearch 端点上运行代码,一切正常。但是当我尝试索引文档时部署相同的代码后,我收到一个错误:

"[invalid_type_name_exception] 文档映射类型名称不能以 '_' 开头,发现:[_create] :: {"path":"/index_name/_create/docId"]"。

Elasticsearch 版本“6.3.0”和 node_module 版本“^16.0.0”。此外,它最初正在工作,但在过去几天停止工作。我认为问题出在某些兼容性和配置上,有人可以帮忙吗?

我尝试使用 client.index 而不是 client.create 并且它工作正常。我已经匹配了本地和服务器上的所有配置和兼容性文件。对我来说一切都很好。

const elasticsearchDoc = {
      index: "school",
      type: "_doc",
      id: 12345,
      body: { name:"raj",marks:40 }
};
const result = await client.create(elasticsearchDoc);
...
Run Code Online (Sandbox Code Playgroud)

node.js elasticsearch kubernetes

7
推荐指数
1
解决办法
8769
查看次数

标签 统计

elasticsearch ×2

node.js ×2

kubernetes ×1