OpenSearch/x-pack/plugin
Alexander Reelsen a15b1b97d2
Watcher: Reduce script cache churn by checking for mustache tags (#33978)
Watcher is using a lot of so called TextTemplate fields in a watch
definition, which can use mustache to insert the watch id for example.
For the user it is non-obvious which field is just a string field or
which field is a text template.

This also means, that for every such field, we currently do a script
compilation, even if the field does not contain any mustache syntax.

This will lead to an increased script cache churn, because those
compiled scripts (that only contain a string), will evict other scripts.
On top of that, this also means that an unneeded compilation has
happened, instead of returning that string immediately.

The usages of mustache templating are in all of the actions (most of the time far
more than one compilation) as well as most of the inputs.

Especially when running a lot of watches in parallel, this will reduce
execution times and help reuse of real scripts.
2018-09-27 09:40:15 +02:00
..
ccr CCR: replicates max seq_no of updates to follower (#34051) 2018-09-26 08:00:10 -04:00
core Security: use default scroll keepalive (#33639) 2018-09-26 14:42:22 -06:00
deprecation Remove unsupported Version.V_5_* (#32937) 2018-08-24 09:51:21 +02:00
graph Clean up "unused variable" warnings (#31876) 2018-09-26 14:09:32 +02:00
logstash Build: Rework shadow plugin configuration (#32409) 2018-08-21 20:03:28 -04:00
ml Clean up "unused variable" warnings (#31876) 2018-09-26 14:09:32 +02:00
monitoring [CCR] Expose auto follow stats to monitoring (#33886) 2018-09-25 07:19:46 +02:00
rollup Core: Abstract DateMathParser in an interface (#33905) 2018-09-26 07:56:25 -07:00
security Security: use default scroll keepalive (#33639) 2018-09-26 14:42:22 -06:00
sql Clean up "unused variable" warnings (#31876) 2018-09-26 14:09:32 +02:00
src/test [ML] Return both Joda and Java formats from structure finder (#33900) 2018-09-25 12:52:51 +01:00
upgrade HLREST: add reindex API (#32679) 2018-08-28 13:02:23 -04:00
watcher Watcher: Reduce script cache churn by checking for mustache tags (#33978) 2018-09-27 09:40:15 +02:00
build.gradle Allow Integ Tests to run in a FIPS-140 JVM (#31989) 2018-07-24 12:48:14 +03:00