From bc271d04550ab5170721cfd5bbb5799bce88865d Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Fri, 4 Sep 2026 04:14:02 +0900 Subject: [PATCH] mirror: set maxmemory to redis-knotmirror large redis dumb takes more than 2mins to load Signed-off-by: Seongmin Lee --- hosts/mirror-fsn/services/knotmirror.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/mirror-fsn/services/knotmirror.nix b/hosts/mirror-fsn/services/knotmirror.nix index a8c37b1..a1eeee8 100644 --- a/hosts/mirror-fsn/services/knotmirror.nix +++ b/hosts/mirror-fsn/services/knotmirror.nix @@ -30,4 +30,8 @@ after = ["postgresql.service"]; environment.MIRROR_METRICS_LISTEN = "0.0.0.0:7100"; }; + services.redis.servers.knotmirror.settings = { + maxmemory = "8gb"; + maxmemory-policy = "allkeys-lru"; + }; } -- 2.51.2