Skip to content

Commit 79dcc5a

Browse files
committed
[CI] Buildkite: Set vm.max_map_count in Elasticsearch
1 parent 18d6c99 commit 79dcc5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.buildkite/run-elasticsearch.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ cleanup_node $es_node_name
3232
master_node_name=${es_node_name}
3333
cluster_name=${moniker}${suffix}
3434

35+
# Set vm.max_map_count kernel setting to 262144
36+
sudo sysctl -w vm.max_map_count=262144
37+
3538
declare -a volumes
3639
environment=($(cat <<-END
3740
--env ELASTIC_PASSWORD=$elastic_password
@@ -146,5 +149,4 @@ END
146149
if wait_for_container "$es_node_name" "$network_name"; then
147150
echo -e "\033[32;1mSUCCESS:\033[0m Running on: $node_url\033[0m"
148151
fi
149-
150152
done

0 commit comments

Comments
 (0)