olivere / elastic

Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
https://olivere.github.io/elastic/
MIT License
7.39k stars 1.15k forks source link

Too many dynamic script compilations within, max: [75/5m] #1641

Closed zenghao306 closed 2 years ago

zenghao306 commented 2 years ago

Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

[ ] elastic.v7 (for Elasticsearch 7.x) when i use v7.0.18 to update some record,this problem produced: [script] Too many dynamic script compilations within, max: [75/5m]; please use indexed, or scripts with parameters instead; this limit can be changed by the [script.max_compilations_rate] setting can you tell me how to solve this problem?

olivere commented 2 years ago

This is typically due to a problematic script design. You can read about all of this in e.g. https://alexmarquardt.com/2020/10/21/elasticsearch-too-many-script-compilations/.