Skip to content

Commit

Permalink
Update redis.conf
Browse files Browse the repository at this point in the history
Signed-off-by: 熊鑫伟 Xinwei Xiong <3293172751NSS@gmail.com>
  • Loading branch information
cubxxw authored Oct 18, 2024
1 parent 2979da3 commit ae04840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compose/production/redis/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 算法做压缩。这个非常有用,能大大减少文件大小,受益匪浅呀,建议你开启。
Expand Down

0 comments on commit ae04840

Please sign in to comment.