Skip to content

[缓存] Redis 故障无熔断,thundering herd 打 DB #35

Description

@ULookup

问题

所有 Redis 操作 try/catch 返回默认值,但 connect_timeout=2s、无熔断;Redis 宕机时每请求先阻塞 2s 再 fall through 到 DB,连接池耗尽、请求堆积。

位置

common/dao/data_redis.hpp 全文

影响

延迟雪崩 + DB 被打穿。

判定

暂缓 — 2026-05-18 spec §4.1-4.2 已规划 InflightRegistry+sentinel 缓解,独立熔断器额外复杂度暂缓。

建议

加 Redis 健康探针 + 熔断窗口,期间跳过 L2 直查 L1/DB。

相关

X1(Redis fail-open 全栈问题)

来源

多级缓存子系统评审 (2026-07-07)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity/S2area/cache多级缓存子系统deferred暂缓:低优先级或阻塞于其他工作enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions