我正在尝试将 100 万条记录同步到 ES,并且我正在使用批量 API 批量 2k 进行同步。但是在插入大约 25k-32k 之后,弹性搜索给出了以下异常。
Unable to parse response body: org.elasticsearch.ElasticsearchStatusException
ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [POST], host [**********], URI [/_bulk?timeout=1m], status line [HTTP/1.1 403 Request throttled due to too many requests]
403 Request throttled due to too many requests /_bulk]; nested: ResponseException[method [POST], host [************], URI [/_bulk?timeout=1m], status line [HTTP/1.1 403 Request throttled due to too many requests]
403 Request throttled due to too many requests /_bulk];
我正在使用 aws 弹性搜索。我认为,我需要实施等待策略来处理它,例如继续检查 es 状态并在 ES 的所有状态都正常的情况下调用批量插入。 但不确定如何实施?ES 是否为它提供任何预构建? 或者有什么更好的方法来处理这个?
提前致谢。
更新:我正在使用 AWS 弹性搜索 6.8 版