`Hi,
I'm using elastic-7.3.1.
I'm sending large number of requests each having unique dynamic inline script and I'm getting this issue on elastic server
org.elasticsearch.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]
To resolve this i have first updated max_compilation_rate to 100/5m but it didn't resolve the issue.
And also we can't keep increasing this parameter due to infrasturcture limitation. So can you please suggest a way out here to tune max_compilation_rate?
Secondly,
I read on elastic documentation page, script.cache.max_size = 100 by default.
Is there any relation between max_compilation_rate and script.cache.max_size?
Since I found a corelaiton between them while experimenting.
I was sending 3 unique dynamic inline script in a minute then i observed a corelation between max_compilation_rate and script.cache.max_size as attached here.
So please look into and let me know, it's right or wrong?
And one more, are stored scripts and inline scripts both counted for script.cache.max_size limitation? I mean, stored_script + inline_script = script.cache.max_size or only inline_script = script.cache.max_size or something else?
Thanks a lot.
Rajnish
`