Skip to content

Commit 7c96715

Browse files
committed
[CI] Only set vm.max_map_count if in Buildkite
1 parent 811f5f8 commit 7c96715

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.buildkite/run-elasticsearch.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ set -euo pipefail
2929
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"
3030
cleanup_node $es_node_name
3131

32-
# Set vm.max_map_count kernel setting to 262144
33-
sudo sysctl -w vm.max_map_count=262144
32+
BUILDKITE=${BUILDKITE-false}
33+
34+
# Set vm.max_map_count kernel setting to 262144 if we're in CI
35+
if [[ "$BUILDKITE" == "true" ]]; then
36+
sudo sysctl -w vm.max_map_count=262144
37+
fi
3438

3539
master_node_name=${es_node_name}
3640
cluster_name=${moniker}${suffix}

0 commit comments

Comments
 (0)