summaryrefslogtreecommitdiff
path: root/qa/vagrant
diff options
context:
space:
mode:
authorJason Tedor <jason@tedor.me>2016-11-11 16:41:54 -0500
committerGitHub <noreply@github.com>2016-11-11 16:41:54 -0500
commit1fde26347affe49225135decac2f54cd0e3b390e (patch)
treee8c4b32e439acfc68e82a0ede7a663a750f857d2 /qa/vagrant
parent5f1d1087041f5a4be9d9da4b8ed5a36ed4c0861f (diff)
Set vm.max_map_count on systemd package install
Our docs claim that we set vm.max_map_count automatically. This is not quite the case. The story is that on SysV init we set vm.max_map_count each time the service starts, which is good. On systemd, we create a sysctl.d conf file that sets vm.map_max_count, but this is only meaningful if the system is rebooted after package install. This commit modifies the post-install script so that we run systemd-sysctl so that the vm.max_map_count change occurs after package install without a reboot. Relates #21507
Diffstat (limited to 'qa/vagrant')
-rw-r--r--qa/vagrant/src/test/resources/packaging/scripts/os_package.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/vagrant/src/test/resources/packaging/scripts/os_package.bash b/qa/vagrant/src/test/resources/packaging/scripts/os_package.bash
index db274b6498..21ce874971 100644
--- a/qa/vagrant/src/test/resources/packaging/scripts/os_package.bash
+++ b/qa/vagrant/src/test/resources/packaging/scripts/os_package.bash
@@ -123,6 +123,7 @@ verify_package_installation() {
assert_file "/usr/lib/systemd/system/elasticsearch.service" f root root 644
assert_file "/usr/lib/tmpfiles.d/elasticsearch.conf" f root root 644
assert_file "/usr/lib/sysctl.d/elasticsearch.conf" f root root 644
+ [[ $(sysctl vm.max_map_count) =~ "vm.max_map_count = 262144" ]]
fi
if is_sysvinit; then