Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reconnect in the master-replica model of Redis-Server with Redis Sentinel #51

Closed
lazyky opened this issue Dec 28, 2023 · 1 comment

Comments

@lazyky
Copy link

lazyky commented Dec 28, 2023

Description
When the master node of redis-server crash, reconnecting will not obtain the address of the updated master node and generate an error:

Err(Client("Disconnected from server"))

To Reproduce
According to the document of redis.

  • Build the master-replica model of Redis-Server with Redis Sentinel
       +----+
       | M1 |
       | S1 |
       +----+
          |
+----+    |    +----+
| R2 |----+----| R3 |
| S2 |         | S3 |
+----+         +----+

Masters are called M1, M2, M3, ..., Mn.
Replicas are called R1, R2, R3, ..., Rn (R stands for replica).
Sentinels are called S1, S2, S3, ..., Sn.
  • Crash the master node of redis-server

Additional context

SentinelConnection
ClusterConnection
@lazyky lazyky changed the title Error reconnect in High availability with Redis Sentinel Error reconnect in the master-replica model of Redis-Server with Redis Sentinel Dec 28, 2023
@mcatanzariti
Copy link
Member

mcatanzariti commented Dec 28, 2023

fixed in 45d0d3a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants