From f2bda4e41faeebf5d3550f9ffaa644cf2bbac3eb Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Wed, 19 Feb 2020 17:42:14 +0100 Subject: [PATCH] Increase max cache size for scripts to try to stabilize Zeek tests (#16390) Some filebeat tests were frequently failing due to "Too many dynamic script compilations". Try to reduce number of compilations by increasing the max size of scripts cache. (cherry picked from commit 742e9e6b24e42027e503182574cf49637278e59f) --- filebeat/docker-compose.yml | 2 ++ x-pack/filebeat/docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/filebeat/docker-compose.yml b/filebeat/docker-compose.yml index 19302ae1e6f..5a447d6cd66 100644 --- a/filebeat/docker-compose.yml +++ b/filebeat/docker-compose.yml @@ -40,6 +40,8 @@ services: extends: file: ${ES_BEATS}/testing/environments/${TESTING_ENVIRONMENT}.yml service: elasticsearch + environment: + script.cache.max_size: "500" kafka: build: ${ES_BEATS}/testing/environments/docker/kafka diff --git a/x-pack/filebeat/docker-compose.yml b/x-pack/filebeat/docker-compose.yml index 55083dd1030..1aff78ea8d9 100644 --- a/x-pack/filebeat/docker-compose.yml +++ b/x-pack/filebeat/docker-compose.yml @@ -32,4 +32,6 @@ services: extends: file: ${ES_BEATS}/testing/environments/${STACK_ENVIRONMENT}.yml service: elasticsearch + environment: + script.cache.max_size: "500"