From 5b3f4b476e01ef3ad350989642b780eb6d8adb95 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 3 Feb 2023 12:31:30 -0500 Subject: [PATCH] Update redis config --- docker/docker-compose.yml | 3 +++ docker/redis/redis.conf | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index acdd62b..bea08f2 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -18,6 +18,9 @@ services: - ./redis/redis.conf:/usr/local/etc/redis/redis.conf ports: - 32773:6379 + sysctls: + - net.core.somaxconn=324000 + - net.ipv4.tcp_max_syn_backlog=3240000 restart: always newleaf: image: abeltramo/newleaf:latest diff --git a/docker/redis/redis.conf b/docker/redis/redis.conf index affb591..77835d7 100644 --- a/docker/redis/redis.conf +++ b/docker/redis/redis.conf @@ -1,4 +1,5 @@ maxmemory-policy allkeys-lru -maxmemory 6500mb +maxmemory 6000mb appendonly no +save "" \ No newline at end of file