OG T
cae9833e5d
fix(heartbeat): 修復多 replica 重複發送系統報告 bug
根因:RedisLock 在 async with 結束後立即 release,
兩個 pod 對齊同一 slot 但 offset 不同,第一個 pod
發完釋放鎖後 ~10s,第二個 pod 剛好 wake 並搶到空鎖
→ 同一個 30min slot 發出兩條相同報告。
修復:改用 slot-based key (heartbeat:slot:{slot_id})
SET NX EX interval_seconds,不主動 release,讓 TTL
自然過期。整個 30min slot 只有第一個搶到的 pod 能發。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 13:17:10 +08:00
..
2026-03-26 16:06:20 +08:00
2026-04-11 02:24:20 +08:00
2026-04-10 11:04:56 +08:00
2026-04-15 13:17:10 +08:00
2026-04-15 13:08:38 +08:00
2026-04-05 01:00:31 +08:00
2026-03-22 18:57:44 +08:00
2026-04-14 15:10:10 +08:00
2026-03-22 18:57:44 +08:00
2026-04-07 16:00:12 +08:00
2026-04-10 13:03:25 +08:00
2026-04-12 15:14:44 +08:00
2026-03-29 15:27:49 +08:00
2026-04-11 20:45:53 +08:00
2026-04-12 12:37:54 +08:00
2026-03-22 18:57:44 +08:00
2026-04-02 00:23:29 +08:00