Questions about redis master rdb files

Hey Folks,

I found that my redis master is running out of space and looks like dump files are consuming all the spaces.
I have no name!@sentry-sentry-redis-master-0:/$ ls -alh /data/
total 7.6G
drwxrwsr-x 3 root 1001 4.0K Jan 13 00:54 .
drwxr-xr-x 1 root root 65 Jan 12 15:18 …
-rw-rw-r-- 1 1001 1001 5.0G Jan 13 00:54 appendonly.aof
-rw-r–r-- 1 1001 1001 1.3G Jan 12 15:25 dump.rdb
drwxrws— 2 root 1001 16K Dec 16 10:59 lost+found
-rw-rw-r-- 1 1001 1001 62M Jan 12 14:21 temp-112.rdb
-rw-rw-r-- 1 1001 1001 774M Jan 12 14:15 temp-116.rdb
-rw-rw-r-- 1 1001 1001 110M Jan 12 13:44 temp-120.rdb
-rw-rw-r-- 1 1001 1001 149M Jan 12 13:19 temp-161.rdb
-rw-rw-r-- 1 1001 1001 222M Jan 12 13:50 temp-179.rdb
-rw-r–r-- 1 1001 1001 58M Jan 13 00:54 temp-rewriteaof-16091.aof

So just curious that what are those temp-XXX.rdb used for , is it safe to remove them or any configurations can rotate them ? Also why we need persistent data of redis, I thought only event counts and quotas are store in redis right ? (I might be wrong cus I’m fresh to this :smiley: )

Thanks in advance,
Ray

AFAIK Redis only holds transitional data including Celery task queues and states. I’m not sure if we are using append-only mode for Redis unless it is the default.

I don’t know about those temp files, that’s a question for Redis experts :slight_smile: