mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
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
This commit is contained in:
committed by
GitHub
parent
c53ce61472
commit
b6907269e8
@@ -64,6 +64,12 @@ function update_script() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start
|
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
|
build_container
|
||||||
description
|
description
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user