@@ -98,9 +98,11 @@ second version is only compiled once.
9898
9999If you compile too many unique scripts within a small amount of time,
100100Elasticsearch will reject the new dynamic scripts with a
101- `circuit_breaking_exception` error. By default, up to 15 inline scripts per
102- minute will be compiled. You can change this setting dynamically by setting
103- `script.max_compilations_rate`.
101+ `circuit_breaking_exception` error. By default, up to 75 scripts per
102+ 5 minutes will be compiled for most contexts and 375 scripts per 5 minutes
103+ for `ingest` contexts. You can change these settings dynamically by setting
104+ `script.context.$CONTEXT.max_compilations_rate` e.g.,
105+ `script.context.field.max_compilations_rate=100/10m`.
104106
105107========================================
106108
@@ -135,7 +137,7 @@ The same script in the normal form:
135137Scripts may be stored in and retrieved from the cluster state using the
136138`_scripts` end-point.
137139
138- If the {es} {security-features} are enabled, you must have the following
140+ If the {es} {security-features} are enabled, you must have the following
139141privileges to create, retrieve, and delete stored scripts:
140142
141143* cluster: `all` or `manage`
@@ -241,9 +243,17 @@ templating language]. See <<search-template>> for more information and examples.
241243
242244All scripts are cached by default so that they only need to be recompiled
243245when updates occur. By default, scripts do not have a time-based expiration, but
244- you can change this behavior by using the `script.cache.expire` setting.
245- You can configure the size of this cache by using the `script.cache.max_size` setting.
246- By default, the cache size is `100`.
246+ you can configure the size of this cache using the
247+ `script.context.$CONTEXT.cache_expire` setting.
248+ By default, the cache size is `100` for all contexts except the `ingest` and the
249+ `processor_conditional` context, where it is `200`.
250+
251+ |====
252+ | Context | Default Cache Size
253+ | `ingest` | 200
254+ | `processor_conditional` | 200
255+ | default | 100
256+ |====
247257
248258NOTE: The size of scripts is limited to 65,535 bytes. This can be
249259changed by setting `script.max_size_in_bytes` setting to increase that soft
0 commit comments