嗨各位,我在 K8s 中運行 n8n
並在日誌中看到這個
2026-08-11T12:50:34.114Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:50:35.157Z | info | Recovered Redis connection {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:54:39.507Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:54:41.116Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:54:42.144Z | info | Recovered Redis connection {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:54:54.513Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:54:55.536Z | info | Recovered Redis connection {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:54:59.355Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:55:00.381Z | info | Recovered Redis connection {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:55:36.502Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:55:37.525Z | info | Recovered Redis connection {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:59:41.469Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:59:43.077Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:59:44.103Z | info | Recovered Redis connection {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
2026-08-11T12:59:56.775Z | warn | Lost Redis connection. Trying to reconnect in 1s... (0s/60s) {"scopes":["redis","scaling"],"file":"redis-client.service.js"}
我從我的電腦和 redis-cli pod 中進行了測試
root@redis-test:/data# while true; do redis-cli -h ``XYZ-9605.l.aivencloud.com`` -p 21274 -a ZYX --no-auth-warning ping; sleep 2; done
PONG
PONG
PONG
PONG
PONG
PONG
PONG
PONG
PONG
PONG
PONG
PONG
PONG
它運作良好
只有從 n8n pod 它才會出現失去連接/恢復連接的情況
可以解決嗎?
有什麼建議嗎?
