Redis Sentinel 集群 + 内网 DNS + 自定义脚本优点:秒级切换脚本自定义,架构可控对应用透明缺点:维护成本略高依赖 DNS,存在解析延时Sentinel 模式存在短时间的服务不可用Redis Sentinel 集群 + VIP + 自定义脚本优点:秒级切换脚本自定义,架构可控对应用透明缺点:维护成本略高Se...
显示全部Redis Sentinel 集群 + 内网 DNS + 自定义脚本
优点:
缺点:
- 维护成本略高
- 依赖 DNS,存在解析延时
- Sentinel 模式存在短时间的服务不可用
Redis Sentinel 集群 + VIP + 自定义脚本
优点:
缺点:
- 维护成本略高
- Sentinel 模式存在短时间的服务不可用
封装客户端直连 Redis Sentinel 端口
优点:
缺点:
- 依赖客户端支持 Sentinel
- Sentinel 服务器需要开放访问权限
- 对应用有侵入性
Redis Sentinel 集群 + Keepalived/Haproxy
优点:
缺点:
- 维护成本高
- 存在脑裂
- Sentinel 模式存在短时间的服务不可用
Redis M/S +Keepalived
优点:
缺点:
Redis Cluster、Twemproxy、Codis 优劣对比建议参考:常见的 redis 集群方案有哪些优缺点?
收起