Slave reports master_link_status:up
but does not receive updates from master.
#4069
Labels
master_link_status:up
but does not receive updates from master.
#4069
Hi! Redis is great, thanks for all your work! We have been running Redis in production for years without issue, but suddenly I am seeing some strange behavior around replication.
TL;DR
Slave looks normal and reports that it's replicating and synced to the master, but is in fact missing updates that should have been propagated from the master. Doing
slaveof no one
followed byslaveof <master> <port>
on the affected slave helps temporarily, but the problem returns after a while. The only indication of issues that we could identify is a discrepancy in the number of keys between the affected slave and the master redis.The above graph shows
abs(numberOfKeys(master) - numberOfKeys(slave))
grouped by slave. The red line is the instance experiencing the issue. The sharp dips where it touches the background noise blue lines (the other redis slaves) are where we stopped and restarted replication (i.e.slaveof no one
followed byslaveof <host> <port>
).So the questions are:
Our Setup
The instance in red above is the affected one.
Mitigation Attempts
The weirdest part is that the problem persists even after #2 — how does a brand new EC2 instance with a brand new redis install get the same issue the previous instance had, and no other instances are affected? We thought it must be related to something that a client or slave of that slave was doing, so we rebuilt all of them, too, in #3. And the problem still came back.
The text was updated successfully, but these errors were encountered: