• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Docker Redis overcommit_memory and Transparent Huge Pages

lucflash

New Pleskian
Hey guys,

i would like to start multiple Redis Servers for a Magento Project (Session + Cache) and we are using the prebuild docker images for that.
We have tried the "official" Redis Image in Version 5.0.12 and 6.0.12 and also the popular bitnami/redis. We always get these two main problems on startup:

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.

In the end, the redis server stopped working by "MISCONF Redis is configured to save RDB snapshots" problem.
How can we implement such fixes? i know about the possibility to login on cli by
docker exec -it xxxxyyyyzzzz bash
but here i have no root permissions and docker says we are on a read-only filesystem.
Is there anything i am missing out?
Thanks for your help in advanced
 
Back
Top