From ae04840c0459bdce36d7851fb34a3e7ca8736eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E9=91=AB=E4=BC=9F=20Xinwei=20Xiong?= <3293172751NSS@gmail.com> Date: Fri, 18 Oct 2024 12:43:44 +0800 Subject: [PATCH] Update redis.conf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 熊鑫伟 Xinwei Xiong <3293172751NSS@gmail.com> --- compose/production/redis/redis.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose/production/redis/redis.conf b/compose/production/redis/redis.conf index bee5c30..a09ca39 100644 --- a/compose/production/redis/redis.conf +++ b/compose/production/redis/redis.conf @@ -12,12 +12,12 @@ save 300 10 save 60 10000 # 主动整理碎片,优化内存使用 -active-defrag yes +# activefrag yes # 调整内存碎片整理的最小阈值和最大阈值 -active-defrag-ignore-bytes 200mb +# active-defrag-ignore-bytes 200mb # 内存碎片的空间占比超过系统分配给 Redis 空间的 20% 。 -active-defrag-threshold-lower 20 +# active-defrag-threshold-lower 20 # active-defrag-threshold-upper 100 # 对 RDB 内存快照文件中的 String 对象使用 LZF 算法做压缩。这个非常有用,能大大减少文件大小,受益匪浅呀,建议你开启。