AOF Redis temp file

1,284 views
Skip to first unread message

Pham Duc Hoang

unread,
Mar 18, 2016, 2:34:16 AM3/18/16
to Redis DB
Hi,

I have a problem with big data when use AOF redis: it create many temp file of AOF redis, can i removed it ?

46748 -rw-r--r--  1 root root  30G Mar 18 12:34 temp-19477.rdb
46633 -rw-r--r--  1 root root  18G Mar 16 16:03 temp-24440.rdb
46676 -rw-r--r--  1 root root  21G Mar 17 18:19 temp-rewriteaof-15993.aof
46606 -rw-r--r--  1 root root  33G Mar 16 12:21 temp-rewriteaof-21982.aof
46649 -rw-r--r--  1 root root  29G Mar 17 00:06 temp-rewriteaof-26794.aof
46678 -rw-r--r--  1 root root  28G Mar 17 20:32 temp-rewriteaof-27459.aof
46664 -rw-r--r--  1 root root  19G Mar 17 12:08 temp-rewriteaof-28431.aof
46672 -rw-r--r--  1 root root  28G Mar 17 14:32 temp-rewriteaof-28919.aof
46674 -rw-r--r--  1 root root  23G Mar 17 16:40 temp-rewriteaof-6303.aof

Can anybody help me ?

Thanks,

Jan-Erik Rediger

unread,
Mar 18, 2016, 8:36:39 AM3/18/16
to redi...@googlegroups.com
Redis first writes to a temporary file and then moves that to the final
destination.
If it leaves behind those temporary files that's an indication of a
problem.
Most likely the process writing those files got killed before it was
able to finish its work (likely because the OOM killer decided it used
to much memory).
If you have proper backups of the data you can remove the temporary files,
but you should still look into why this happens.
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages