From b6907269e8e6a2cde2d32da7c95fa6b27ba8e7dc Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 31 Mar 2026 23:57:16 +0200 Subject: [PATCH] fix(graylog): set vm.max_map_count on host for OpenSearch (#13441) OpenSearch requires vm.max_map_count >= 262144 but the Linux default is 65530. Since this is not a namespaced sysctl, it must be set on the Proxmox host rather than inside the unprivileged LXC. Closes #13420 --- ct/graylog.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ct/graylog.sh b/ct/graylog.sh index 1c2256931..fca2d9e4c 100644 --- a/ct/graylog.sh +++ b/ct/graylog.sh @@ -64,6 +64,12 @@ function update_script() { } start + +if [[ $(sysctl -n vm.max_map_count 2>/dev/null) -lt 262144 ]]; then + sysctl -w vm.max_map_count=262144 >/dev/null 2>&1 + echo "vm.max_map_count=262144" >/etc/sysctl.d/graylog.conf +fi + build_container description