Upping the value of set script.max_compilations_per_minute

Hey there,

I am currently bumping into the error:

org.elasticsearch.common.breaker.CircuitBreakingException: [script] Too many dynamic script compilations within one minute

The nature of the application I am working on is such that you can potentially have several distinct filter expressions for which the parameter approach will not help much. I was thinking about bumping up this value in elasticsearch.yml to a much larger number than the default of 15/min.

Questions are:

  1. Is there any top recommendation for the largest number we could put here?
  2. What is the potential impact of having a larger number here?

Thanks,

Francisco.

Hey,

the idea here is, that you should not waste too much CPU time compiling scripts. So maybe it makes more sense to use indexed scripts or file-based scripts or scripts with parameters, so that the script itself does not need to be recompiled. if you are fine with the resources needed (as a single request suddently becomes much more expensive), you can set it to a higher value.

--Alex

Thanks Alex!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.