elasticsearch 调用update方法报错: Too many dynamic script compilations within, max: [75/5m]

    {"took":2,"timed_out":false,"total":1,"updated":0,"deleted":0,"batches":1,"version_conflicts":1,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[{"index":"support_stat_log","type":"stat_log","id":"N6ohWWcBn9p1k3gcHDnG","cause":{"type":"version_conflict_engine_exception","reason":"[stat_log][N6ohWWcBn9p1k3gcHDnG]: version conflict, current version [2] is different than the one provided [1]","index_uuid":"jwg-20iLQ1iBiBkgNed7Kw","shard":"2","index":"support_stat_log"},"status":409}]}


大概意思就是每分钟编译的内容太多了,默认是75/5m,
那把这个设置大点就可以了:
比如:

    PUT _cluster/settings
    {
        "transient" : {
            "script.max_compilations_rate" : "100/1m"
        }
    }

目前不知道有没有什么负面影响,估计是会多消耗cpu,但是更新暂时不会报错了

猜你喜欢

转载自blog.csdn.net/zhanqixuan22/article/details/88964560
今日推荐