目录
Redis service discovery via Sentinel
Step 1: connecting to the first Sentinel
Step 2: ask for master address
Step 3: call the ROLE command in the target instance
Sentinel failover disconnection
Sentinels list automatic refresh
Subscribe to Sentinel events to improve responsiveness
Sentinel client spec
How to build clients for Redis Sentinel
Redis Sentinel is a monitoring solution for Redis instances that handles automatic failover of Redis masters and service discovery (who is the current master for a given group of instances?). Since Sentinel is both responsible for reconfiguring instances during failovers, and providing configurations to clients connecting to Redis masters or replicas, clients are required to have explicit support for Redis Sentinel.
This document is targeted at Redis clients developers that want to support Sentinel in their clients implementation with the following goals:
- Automatic configuration of clients via Sentinel.