Elasticsearch7 Must be less than or equal to: [500]. This limit can be set by changing

Elasticsearch7 Must be less than or equal to: [500]. This limit can be set by changingCaused by: org.elasticsearch.client.ResponseException: method [POST], host [http://192.168.132.245:…

 Caused by: org.elasticsearch.client.ResponseException: method [POST], host [http://192.168.132.245:9200], URI [/collect_data_store_customer_flow_fact*/_search?typed_keys=true&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&scroll=60000ms&search_type=query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=true], status line [HTTP/1.1 500 Internal Server Error]
{"error":{"root_cause":[{"type":"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":"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":"collect_data_store_customer_flow_fact_201909","node":"q2A1DV-ERxajfaeEerZXXg","reason":{"type":"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."}},{"shard":0,"index":"collect_data_store_customer_flow_fact_201910","node":"1C7XnVeiRF-vCZAR2jdpnQ","reason":{"type":"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":500}

代码100分

偶尔会出现以上的问题

scroll 客户端 设置的原来是 1000 ,  改为  500 解决。 

因为默认是 500 ,  所以es不允许

https://segmentfault.com/a/1190000020395065

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/11188.html

(0)
上一篇 2022-12-15
下一篇 2022-12-15

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注