Redis Sentinel

来自姬鸿昌的知识库
Jihongchang讨论 | 贡献2023年2月19日 (日) 04:54的版本 →‎配置文件
跳到导航 跳到搜索

Redis Sentinel 在不使用 Redis Cluster 时为 Redis 提供高可用性。

生成缩略图出错:无法将缩略图保存到目标地点

简单来说,Redis Sentinel 负责监控 master 和 slave,并在 master 出问题的时候从 slave 中选举一个出来作为 master 对外提供访问


注意

因为涉及到选举机制,所以 Redis Sentinel 的实例至少要有3个



配置文件

启动

redis-server /path/to/sentinel.conf --sentinel


参考

https://redis.io/docs/management/sentinel/

https://www.youtube.com/watch?v=GEg7s3i6Jak

https://github.com/marcel-dempers/docker-development-youtube-series/tree/7ef03d3865cd25dec9c105202cb80f75a7b2448d/storage/redis/clustering