详情:
Redis Configuration (redis.conf):
`appendonly yes
每秒追加一次同步节省900 1
Laravel App in a Docker container
Redis running in a Docker container
问题描述:
我已经为Redis配置了appendonly yes和appendfsync everysec以确保数据持久化。 save配置被注释掉,save“”用于禁用RDB快照。尽管这样设置,我还是经常在 Redis 容器日志中快速连续看到多个“DB Saved on Disk”日志,此时 Laravel Horizon 管理的所有作业都会从 Redis 中消失。重现步骤:
Configure Redis with the provided redis.conf settings.
Run Laravel Horizon to manage jobs.
Monitor Redis container logs.
Observe the disappearance of jobs when "DB Saved on Disk" logs appear.
尝试的解决方案:
I have tried different Redis configurations, including disabling appendonly and enabling various RDB snapshot settings. Unfortunately, the issue persists across different configuration modes.
问题:
What could be causing Redis to log "DB Saved on Disk" despite having RDB snapshots disabled?
Is there a known issue with the appendonly and appendfsync settings that could lead to job loss in Redis?
What steps can I take to prevent jobs from disappearing in Redis?
任何见解或建议将不胜感激。谢谢!