mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
Scripting: Deprecate general cache settings (#55038)
* Scripting: Deprecate general cache settings * Add script.disable_max_compilations_rate setting * Move construction to ScriptCache * Use ScriptService to do updates of CacheHolder * Remove fallbacks * Add SCRIPT_DISABLE_MAX_COMPILATIONS_RATE_SETTING to ClusterSettings * Node scope * Use back compat * 8.0 for bwc * script.max_compilations_rate=2048/1m -> script.disable_max_compilations_rate=true in docker compose * do not guard in esnode * Doc update * isSnapshotBuild() -> systemProperty 'es.script.disable_max_compilations_rate', 'true' * Do not use snapshot in gradle to set max_compilations_rate * Expose cacheHolder as package private * monospace 75/5m in cbreaker docs, single space in using * More detail in general compilation rate error * Test: don't modify defaultConfig on upgrade
This commit is contained in:
parent
3c565f78d3
commit
bd64da0960
12 changed files with 297 additions and 335 deletions
|
@ -98,9 +98,11 @@ second version is only compiled once.
|
|||
|
||||
If you compile too many unique scripts within a small amount of time,
|
||||
Elasticsearch will reject the new dynamic scripts with a
|
||||
`circuit_breaking_exception` error. By default, up to 15 inline scripts per
|
||||
minute will be compiled. You can change this setting dynamically by setting
|
||||
`script.max_compilations_rate`.
|
||||
`circuit_breaking_exception` error. By default, up to 75 scripts per
|
||||
5 minutes will be compiled for most contexts and 375 scripts per 5 minutes
|
||||
for ingest contexts. You can change these settings dynamically by setting
|
||||
`script.context.$CONTEXT.max_compilations_rate` eg.
|
||||
`script.context.field.max_compilations_rate=100/10m`.
|
||||
|
||||
========================================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue