出现“DB Saved on Disk”日志时,Laravel Horizon 管理的作业从 Redis 中消失

问题描述 投票:0回答:1
问题: 我遇到了一个严重问题,由 Laravel Horizon 管理的作业突然从 Redis 中消失。这与我的 Redis 容器日志中出现的大量“DB Saved on Disk”日志同时发生。每当我看到这些日志时,我所有的工作都会从 Redis 中消失。

详情:

Redis Configuration (redis.conf): `appendonly yes
每秒追加一次同步

节省900 1

节省 300 10

节省60 10000

保存“” ` 环境:

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 中消失。

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?
任何见解或建议将不胜感激。

谢谢!

php laravel redis jobs horizon
1个回答
0
投票
你有没有弄清楚这一点?我现在在本地开发中遇到了这种情况...我推送了一堆作业,它们开始处理,但过了一会儿当我回来查看时,它们都从待处理中消失了,而已完成是偶然的.

© www.soinside.com 2019 - 2024. All rights reserved.