Reputation: 51
I am reading something about redis persistence, right now two ways are available for keeping the redis persistence.
ok, i will skip the basic meanings of "AOF" and "RDB", I have a question about the "AOF", My question is "what will happen when the aof file for redis is too big, even after being rewrited ?", I have searched on google, but no result, somesone said the redis-server will fail to startup when the size of "AOF" file reach 3G or 4G. Could anyone can tell me ? Thanks a lot.
Upvotes: 1
Views: 1763
Reputation: 22936
Redis doesn't limit the size of AOF
file. You can safely have a large AOF
file. One of my Redis instance writes an AOF
file with a size of 95G
, and it can reload the file successfully. Of course, it takes a very long time.
somesone said the redis-server will fail to startup when the size of "AOF" file reach 3G or 4G
I'm not sure if the problem someone met, is because of the limit of file system. For some old file system, the size of a single file CANNOT exceed 2G
or 4G
. However, for modern file system, the limit has been removed.
Upvotes: 1