Skip to content

How to use Pub/Sub for sentinel events #3004

Closed Answered by tishun
Renboo asked this question in Q&A
Discussion options

You must be logged in to vote

I have a requirement to use Sentinel with High Availability way.

In order to use Sentinel toy do not need to use pub/sub, the driver would handle changes to the environment for you.
For more details see Redis Sentinel and Redis discovery using Redis Sentinel, specifically:

The disconnect can result in any of the following options:

The master comes back: The connection is restored to the Redis instance

A replica is promoted to a master: Lettuce performs an address lookup using the masterId. As soon as the Redis Sentinel provides an address the connection is restored to the new Redis instance

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@tishun
Comment options

Answer selected by Renboo
@tishun
Comment options

@Renboo
Comment options

@tishun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants