使用滚动查询会影响es的性能,多个人同时使用,服务器会一直报错。
scroll只适用于批量导出,而且得限制导出的频率
错误信息:
{"error":{"root_cause":[{"type":"too_many_scroll_contexts_exception","reason":"Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"call_task_new","node":"I0BypEsXRa-RUpe3ADmz9A","reason":{"type":"too_many_scroll_contexts_exception","reason":"Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."}}]},"status":429}