--
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.
--You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/FrHrmhm2grgJ.
I'm starting to think this may be related to issue #602. Can you be
more specific when the lockup happens: together with high %io,
together with high %wa or both? I suspect it only occurs together with
%wa, where Redis renames the new dump and unlinks the old one. If the
disk performance is poor, this may block Redis a bit longer than it
should, resulting in timeouts. Can you confirm if my suspicion is
correct?
Thanks,
Pieter
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/AuRRHiFucrgJ.
strace -ttt -T -p $(pgrep redis-server) -e"trace=open,close,unlink,rename"
When a background dump or a background AOF rewrite finished you will
see something along the lines of:
1313138997.138010 --- SIGCHLD (Child exited) @ 0 (0) ---
1313138997.142032 open("temp-rewriteaof-bg-31724.aof",
O_WRONLY|O_APPEND|O_LARGEFILE) = 7 <0.000016>
1313138997.142226 rename("temp-rewriteaof-bg-31724.aof",
"appendonly.aof") = 0 <0.000057>
1313138997.142407 close(6) = 0 <0.143789>
1313138997.286558 unlink("temp-rewriteaof-bg-31724.aof") = -1 ENOENT
(No such file or directory) <0.000024>
Note that close() takes 140ms here. I suspect close() to take more or
less the time your Redis instance is locked. If this is the case, we
know for sure.
Thanks,
Pieter