Redis slave does not disconnect

178 views
Skip to first unread message

Kevin Peterson

unread,
Feb 9, 2011, 3:02:18 PM2/9/11
to Redis DB
I'm doing replication between datacenters. I'm seeing a problem that I
don't understand what is going on. The slave stops receiving updates,
master_last_io_seconds_ago keeps going up, but the master link status
still says 'up'.

There is nothing in the logs on either master or slave -- I see saves
to disk, then it just stops, then it starts up again when I do
slaveof.

What is the expected behavior? I assumed that it would drop the
connection and say master link status down or similar.

I don't see this reported yet. Issue 203 deals with breaking the
connection during the initial sync. This might be related to 181
although that is also phrased as initial sync. Also, slave is still
responsive, it just doesn't have any updates since it stopped getting
data.

Salvatore Sanfilippo

unread,
Feb 10, 2011, 4:33:02 AM2/10/11
to redi...@googlegroups.com
Hello Kevin, what Redis version? This should work well in the latest
2.2 branch on github, and in the lastet 2.2 RC release.

Cheers,
Salvatore

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>

--
Salvatore 'antirez' Sanfilippo
open source developer - VMware

http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele

Kevin Peterson

unread,
Feb 11, 2011, 12:52:59 PM2/11/11
to redi...@googlegroups.com
This was with 2.0.3. I'll try 2.2. It looks like the master-slave PING is specifically fixing this issue.
Reply all
Reply to author
Forward
0 new messages