From fa7f40a56dc0aa4a4100caa5037050db93d9071e Mon Sep 17 00:00:00 2001 From: Crimekillz Date: Sun, 28 Apr 2024 12:19:17 +0200 Subject: [PATCH] docs/docker-compose-install.md aktualisiert --- docs/docker-compose-install.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/docker-compose-install.md b/docs/docker-compose-install.md index 0426aa3a0..1a12a2538 100644 --- a/docs/docker-compose-install.md +++ b/docs/docker-compose-install.md @@ -79,3 +79,15 @@ docker compose up -d ## Post-install See [post-install](post-install.md). + +## Troubleshooting + +```WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition.``` + +If you see a warning like this, you have to enable overcommit on your host machine (outside docker, since /proc is read-only for redis). +Solution + +``` +echo "vm.overcommit_memory = 1" | sudo tee /etc/sysctl.d/trashposs-memory-overcommit.conf should be set, to enable Memory overcommit on reboot, change will apply after reboot or see the line below how to activate it temporary without reboot +sysctl "vm.overcommit_memory=1" enables Memory overcommit on-the-fly, you can then start TrashPoss with "docker-compose up -d" +``` \ No newline at end of file