This commit is contained in:
Valentin Rigal 2023-06-20 12:33:04 +02:00 коммит произвёл Sebastian Hengst
Родитель 565bd0e02a
Коммит ab3299339d
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -83,10 +83,9 @@ services:
redis:
container_name: redis
# https://hub.docker.com/_/redis/
image: redis:6.2.11-alpine
image: redis:7.0.11-alpine
# Messages after starting the redis-server
# WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128
# 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.
# WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. 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.
# Hide Redis `notice` log level startup output spam.
command: redis-server --loglevel warning
ports: