fix(redis): Add setup step to set memory overcommit (fixes #73)

This commit is contained in:
Carsten Sprung 2024-10-29 22:45:50 +01:00
parent 26074448a4
commit efacb24865
2 changed files with 11 additions and 0 deletions

View file

@ -247,3 +247,13 @@ reboot
``` ```
Set `rc_cgroup_mode="unified` Set `rc_cgroup_mode="unified`
### memory overcommit
https://redis.io/docs/latest/develop/get-started/faq/#background-saving-fails-with-a-fork-error-on-linux
https://www.kernel.org/doc/Documentation/vm/overcommit-accounting
```sh
cd /etc/sysctl.d
ln -vs /opt/container-server/setup/sysctl.d/* .
```

View file

@ -0,0 +1 @@
vm.overcommit_memory = 1