.buildkite/run-elasticsearch.sh in elastic-enterprise-search-8.6.0 vs .buildkite/run-elasticsearch.sh in elastic-enterprise-search-8.7.0
- old
+ new
@@ -27,10 +27,13 @@
set -euo pipefail
echo -e "\033[34;1mINFO:\033[0m Take down node if called twice with the same arguments (DETACH=true) or on seperate terminals \033[0m"
cleanup_node $es_node_name
+# Set vm.max_map_count kernel setting to 262144
+sudo sysctl -w vm.max_map_count=262144
+
master_node_name=${es_node_name}
cluster_name=${moniker}${suffix}
declare -a volumes
environment=($(cat <<-END
@@ -83,16 +86,9 @@
cert_validation_flags=""
if [[ "$TEST_SUITE" == "platinum" ]]; then
cert_validation_flags="--insecure --cacert /usr/share/elasticsearch/config/certs/ca.crt --resolve ${es_node_name}:443:127.0.0.1"
fi
-echo "--- :elasticsearch: Environment setup"
-echo "TEST_SUITE: $TEST_SUITE"
-echo "Elasticsearch URL: $elasticsearch_url"
-echo "Elasticsearch External URL: $external_elasticsearch_url"
-
-
-echo "--- :elasticsearch: Running container"
# Pull the container, retry on failures up to 5 times with
# short delays between each attempt. Fixes most transient network errors.
docker_pull_attempts=0
until [ "$docker_pull_attempts" -ge 5 ]
do