我主持了一个使用Sidekiq来pipe理其后台作业的Rails 5网站。 我的问题是,经常appendonly.aof文件增长到它将它保存的整个磁盘。
有没有办法限制appendonly.aof的大小?
我的redis.conf文件非常标准
########################## 一般
- Redis在OpenSuse 42.1上运行,但是会抛出很多错误,我该如何解决?
- Redis哨兵没有结束
- HAProxy健康检查连续计数不重置
- Systemd:作为服务运行时,Redis服务器无法启动 – 符号链接层次太多
- AWS ElastiCache Redis – 为什么SwapUsage的FreeableMemory可用缓慢上升超过100MB?
daemonize是pidfile /var/run/redis/redis-server.pid端口6379 tcp-backlog 511绑定0.0.0.0
超时0 tcp-keepalive 0
日志级别通知
日志文件/var/log/redis/redis-server.log
数据库16
########################## SNAPSHOTTING
save 900 1 save 300 10 save 60 10000 stop-writes-on-bgsave-error是rdbcompression是rdbchecksum是dbfilename dump.rdb dir / var / lib / redis
########################### REPLICATION
slave-serve-stale-data是slave-read-only是repl-diskless-sync否repl-diskless-sync-delay 5 repl-disable-tcp-nodelay no slave-priority 100
############################ SECURITY ##################### ########极限
maxmemory-policy noviction
######################## APPEND ONLY MODE
appendonly yes appendfilename“appendonly.aof”appendfsync everysec no-appendfsync-on-rewrite no auto-aof-rewrite-percentage 100 auto-aof-rewrite-min-size 64mb aof-load-truncated yes
########################## LUA SCRIPTING
lua-time-limit 5000
############################慢日志
慢日志 – 慢 – 比10000
slowlog-max-len 128
########################## LATENCY MONITOR
latency-monitor-threshold 0
#######################事件通知
notify-keyspace-events“”
######################### ADVANCED CONFIG
hash-max-ziplist-entries 512 hash-max-ziplist-value 64
list-max-ziplist-entries 512 list-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128 zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing是的
client-output-buffer-limit normal 0 0 0 client-output-buffer-limit slave 256mb 64mb 60 client-output-buffer-limit pubsub 32mb 8mb 60 hz 10
aof-rewrite-incremental-fsync是的