Trying to create too many scroll contexts. Must be less than or equal to: [500].

从es上查询数据报错如下

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.
1
解决办法,用linux curl命令执行,默认search.max_open_scroll_context是500,改成5000

curl -X PUT http://127.0.0.1:9200/_cluster/settings -H ‘Content-Type: application/json’ -d'{
“persistent” : {
“search.max_open_scroll_context”: 4000
},
“transient”: {
“search.max_open_scroll_context”: 4000
}
}

作者: 执着小钟

执着小钟

发表评论