报错:
Caused by: ElasticsearchException
[Elasticsearch exception [type=circuit_breaking_exception, reason=[script]
Too many dynamic script compilations within, max: [75/5m];
please use indexed, or scripts with parameters instead;
this limit can be changed by the [script.max_compilations_rate] setting]]
解决方案:更改配置文件 script.max_compilations_rate 参数,然后重启
暂时方案:
在控制台执行命令:
PUT /_cluster/settings
{
"persistent" : {
"script.max_compilations_rate" : "2000/10m"
}
}
解决问题
也可以用这个命令查看当前配置的问题
GET /_cluster/settings
script.max_compilations_rate 的默认值是
[75/5m]