【发布时间】:2020-04-22 14:37:38
【问题描述】:
elasticsearch 版本 6.8.5
ElasticsearchIO 2.15.0
数据流版本 2.15.0
我的集群中有 3 个节点,在同一台机器上我有 gcp 中的实例,它有 6 个内核和 16GB 的内存,我为每个节点设置了 4gb
我有 5 个索引 每个索引 2 个分片 2 个副本
数据流在2分钟内向elasticsearch发送总共2K条记录到每个索引总共10K条记录
并将下一个错误发送给我
java.io.IOException: Error writing to Elasticsearch, some elements could not be inserted:
Document id jnlmbW8BnhRHn7hU2cLS: rejected execution of processing of [10948][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[indexname][0]] containing [3] requests, target allocation id: M40WguEMSTmWedf2c6LuAg, primary term: 1 on EsThreadPoolExecutor[name = C2JZ4zA/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@51a06c32[Running, pool size = 6, active threads = 6, queued tasks = 224, completed tasks = 1026]] (es_rejected_execution_exception)
我检查了 elasticsearch 中的结果和记录是否丢失
例如数据流说处理 1850 条记录,在弹性搜索中有 1800
有什么想法吗?
【问题讨论】:
标签: java elasticsearch google-cloud-dataflow