mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Set 'script.max_compilations_rate: use-context'
This commit is contained in:
parent
1e5b475bee
commit
66e3e4eaad
@ -1,4 +1,11 @@
|
||||
-r ../requirements-dev.txt
|
||||
elasticsearch>=7.7
|
||||
pandas>=1.2.0
|
||||
matplotlib
|
||||
nbval
|
||||
numpydoc>=0.9.0
|
||||
scikit-learn>=0.22.1
|
||||
xgboost>=1
|
||||
lightgbm
|
||||
nbsphinx
|
||||
numpydoc>=0.9.0
|
||||
git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
|
||||
|
@ -90,7 +90,12 @@ def _update_max_compilations_limit(es, limit="10000/1m"):
|
||||
if es_version(es) < (7, 8):
|
||||
body = {"transient": {"script.max_compilations_rate": limit}}
|
||||
else:
|
||||
body = {"transient": {"script.context.field.max_compilations_rate": limit}}
|
||||
body = {
|
||||
"transient": {
|
||||
"script.max_compilations_rate": "use-context",
|
||||
"script.context.field.max_compilations_rate": limit,
|
||||
}
|
||||
}
|
||||
es.cluster.put_settings(body=body)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user