Skip to content

Commit ae04840

Browse files
authored
Update redis.conf
Signed-off-by: 熊鑫伟 Xinwei Xiong <[email protected]>
1 parent 2979da3 commit ae04840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compose/production/redis/redis.conf

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ save 300 10
1212
save 60 10000
1313

1414
# 主动整理碎片,优化内存使用
15-
active-defrag yes
15+
# activefrag yes
1616

1717
# 调整内存碎片整理的最小阈值和最大阈值
18-
active-defrag-ignore-bytes 200mb
18+
# active-defrag-ignore-bytes 200mb
1919
# 内存碎片的空间占比超过系统分配给 Redis 空间的 20% 。
20-
active-defrag-threshold-lower 20
20+
# active-defrag-threshold-lower 20
2121
# active-defrag-threshold-upper 100
2222

2323
# 对 RDB 内存快照文件中的 String 对象使用 LZF 算法做压缩。这个非常有用,能大大减少文件大小,受益匪浅呀,建议你开启。

0 commit comments

Comments
 (0)