2022-04-11 redis哨兵客户端文档

该文档为Redis Sentinel客户端开发提供了详细说明,包括如何通过Sentinel进行Redis服务发现,处理重新连接,应对Sentinel故障转移断开,连接到副本,错误报告,以及Sentinels列表自动刷新等,旨在实现客户端自动配置和提高Sentinel自动故障转移的安全性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

Sentinel client spec

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

Handling reconnections

Sentinel failover disconnection

Connecting to replicas

Connection pools

Error reporting

Sentinels list automatic refresh

Subscribe to Sentinel events to improve responsiveness

Additional information


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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

悟世者

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值