Painless Script Caching Question

We are using es 7.1. We have an error “Too many dynamic script compilations within”。

It can be fixed by increase some params:
script.context.$CONTEXT.max_compilations_rate

My question is :
Es 7.1 Supports a monitoring metric, can see the script caching evictions.
This is result:

according this:

All scripts are cached by default so that they only need to be recompiled when updates occur. By default, scripts do not have a time-based expiration, but you can change this behavior by using the script.cache.expire setting.

the scripts caching ttl is infinite,so it will evict by limit,but from the result, we dont't see it reach limit.

So what is the compilations and cache_evictions mean? * What other situations would clean up this cache?

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