elasticsearch/docs/reference/scripting
Stuart Tettemer 808b70d2f9
Script: Restore the scripting general cache (#79453)
Deprecate the script context cache in favor of the general cache.

Users should use the following settings:
`script.max_compilations_rate` to set the max compilation rate
  for user scripts such as filter scripts.  Certain script contexts
  that submit scripts outside of the control of the user are
  exempted from this rate limit.  Examples include runtime fields,
  ingest and watcher.

`script.cache.max_size` to set the max size of the cache.

`script.cache.expire` to set the expiration time for entries in
the cache.

Whats deprecated?
`script.max_compilations_rate: use-context`.  This special
setting value was used to turn on the script context-specific caches.

`script.context.$CONTEXT.cache_max_size`, use `script.cache.max_size`
instead.

`script.context.$CONTEXT.cache_expire`, use `script.cache.expire`
instead.

`script.context.$CONTEXT.max_compilations_rate`, use
`script.max_compilations_rate` instead.

The default cache size was increased from `100` to `3000`, which
was approximately the max cache size when using context-specific caches.

The default compilation rate limit was increased from `75/5m` to
`150/5m` to account for increasing uses of scripts.

System script contexts can now opt-out of compilation rate limiting
using a flag rather than a sentinel rate limit value.

7.16: Script: Deprecate script context cache #79508
Refs: #62899

7.16: Script: Opt-out system contexts from script compilation rate limit #79459
Refs: #62899
2021-10-21 07:57:27 -05:00
..
apis [DOCS] Overhaul search template docs (#72583) 2021-06-30 16:03:49 -04:00
common-script-uses.asciidoc [DOCS] Create a new page for dissect content in scripting docs (#73437) 2021-05-27 17:08:52 -04:00
dissect-syntax.asciidoc [DOCS] Remove errant note (#73597) (#73600) 2021-06-01 09:41:09 -04:00
engine.asciidoc [DOCS] Change // CONSOLE comments to [source,console] (#46440) 2019-09-09 10:45:37 -04:00
expression.asciidoc [DOCS] Correct spelling for geo terms (#76028) 2021-08-03 09:55:48 -04:00
fields.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
grok-syntax.asciidoc Fix broken link for grok patterns in documentation (#78878) 2021-10-12 14:46:44 -04:00
painless.asciidoc [DOCS] Focus scripting docs on Painless (#69748) 2021-03-18 15:58:33 -04:00
security.asciidoc [DOCS] Add ES security principles (#76850) 2021-08-31 12:37:22 -04:00
using.asciidoc Script: Restore the scripting general cache (#79453) 2021-10-21 07:57:27 -05:00