Watcher action error

I have noticed this exception in watcher history. I couldn't find much answers on internet, but by looking through the error statement, I can understand it suggests not to run more watch at same time. In our server, there are no other watch configured to execute at same minute, but there are few runs in same hour. What is the reason for this error?

"actions": [
                "id": "email_administrator",
                "type": "email",
                "status": "failure",
                "reason": "GeneralScriptException[Failed to compile inline script [Watcher alert] using lang [mustache]]; nested: CircuitBreakingException[[script] Too many dynamic script compilations within one minute, max: [15/min]; please use on-disk, indexed, or scripts with parameters instead; this limit can be changed by the [script.max_compilations_per_minute] setting]; "
1 Like


this means, there are some script compilations going on - I suppose you also have queries that use scripting. You should try to not trigger new compilation of scripts that often as that is a performance issue. Instead you should reuse the same scripts and use parameters for dynamic changes (i.e. thresholds).

For more information follow the docs about the script circuit breaker


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