fix(redis): Add setup step to set memory overcommit (fixes #73)
This commit is contained in:
parent
26074448a4
commit
efacb24865
2 changed files with 11 additions and 0 deletions
|
@ -247,3 +247,13 @@ reboot
|
|||
```
|
||||
|
||||
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/* .
|
||||
```
|
||||
|
|
1
setup/sysctl.d/redis-memory-overcommit.conf
Normal file
1
setup/sysctl.d/redis-memory-overcommit.conf
Normal file
|
@ -0,0 +1 @@
|
|||
vm.overcommit_memory = 1
|
Loading…
Reference in a new issue