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]
You shouldn't need to replace those constants if they never changed. Is this a production instance, or something you can play with? I would be interested to see trace logging enabled for the ScriptService so we can see exactly what the system thinks is different between your script invocations (if it is always the same script, it should be cached). You can turn this on dynamically: https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html#configuring-logging-levels. I think the setting would be logger.org.elasticsearch.script.
This is a new production instance that has been causing these errors, we upgraded from 2.4 to 6.2 and were inundated with errors and had to immediately switch back to the old cluster.
I'll talk to our sysadmins to see what they say about adding more logging.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.