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

redis 2.8 psync #1400

Closed
sqlcat opened this Issue Nov 26, 2013 · 6 comments

Comments

Projects
None yet
3 participants
@sqlcat

sqlcat commented Nov 26, 2013

the slave log print "[[26451] 26 Nov 16:07:24.555 * Successful partial resynchronization with master.
[26451] 26 Nov 16:07:24.555 * MASTER <-> SLAVE sync: Master accepted a Partial Resynchronization.
[26451] 26 Nov 16:07:24.878 * Caching the disconnected master state.
[26451] 26 Nov 16:07:25.555 * Connecting to MASTER 10.131.100.21:6666
[26451] 26 Nov 16:07:25.555 * MASTER <-> SLAVE sync started
[26451] 26 Nov 16:07:25.555 * Non blocking connect for SYNC fired the event.
[26451] 26 Nov 16:07:25.555 * Master replied to PING, replication can continue...
[26451] 26 Nov 16:07:25.555 * Trying a partial resynchronization (request c1a62846733a92943a6e415ec4471cd150be61e7:450000263).
[26451] 26 Nov 16:07:25.556 * Successful partial resynchronization with master.
[26451] 26 Nov 16:07:25.556 * MASTER <-> SLAVE sync: Master accepted a Partial Resynchronization.
[26451] 26 Nov 16:07:25.878 * Caching the disconnected master state.
[26451] 26 Nov 16:07:26.557 * Connecting to MASTER 10.131.100.21:6666
[26451] 26 Nov 16:07:26.557 * MASTER <-> SLAVE sync started
[26451] 26 Nov 16:07:26.557 * Non blocking connect for SYNC fired the event.
[26451] 26 Nov 16:07:26.557 * Master replied to PING, replication can continue...
[26451] 26 Nov 16:07:26.557 * Trying a partial resynchronization (request c1a62846733a92943a6e415ec4471cd150be61e7:450000263).." forever

can you help me?
My operation is as follows
1、master---slave(repl-backlog-size 512mb、repl-backlog-ttl 0)
2、on slave /sbin/iptables -A INPUT -s 10.131.100.21 -p tcp -j DROP
3、wait 3 min
4、/sbin/iptables -D INPUT 1
5、error start

@antirez

This comment has been minimized.

Owner

antirez commented Nov 26, 2013

Hello, please could send the master logs as well? The answer is probably there.

@sqlcat

This comment has been minimized.

sqlcat commented Nov 26, 2013

log file content: "[20077] 26 Nov 14:44:01.304 # Client addr=10.16.15.165:33907 fd=27 name= age=0 idle=0 flags=S db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=1 omem=482345000 events=rw cmd=psync scheduled to be closed ASAP for overcoming of output buffer limits.
[20077] 26 Nov 14:44:01.304 * Partial resynchronization request accepted. Sending 481685735 bytes of backlog starting from offset 53761426.
[20077] 26 Nov 14:44:01.562 * Slave asks for synchronization" forever

@antirez

This comment has been minimized.

Owner

antirez commented Nov 27, 2013

Hello, the master log file clearly states the problem: scheduled to be closed ASAP for overcoming of output buffer limits.

You should check the master configuration and enlarge (or disable) the output buffer limit for slaves (see redis.conf). And the problem will go away.

Cheers,
Salvatore

@sqlcat

This comment has been minimized.

sqlcat commented Nov 28, 2013

set "client-output-buffer-limit slave 0 0 0 ", every thing is ok,3ks!

@antirez

This comment has been minimized.

Owner

antirez commented Nov 28, 2013

Great! Closing the issue.

@antirez antirez closed this Nov 28, 2013

@blckhm

This comment has been minimized.

blckhm commented Jul 11, 2018

same issue on my production env. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment