google-code-export / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

redis aof #575

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of Redis you are using, in what kind of Operating System?
centos 5.5

What is the problem you are experiencing?

As BGsave is causing interminant timeouts for redis connections, i want to 
disable rdb and enable aof file. Dataset size is around 10G . Will redis block 
other operations during the initial dump of the the aof file? 

What steps will reproduce the problem?

Do you have an INFO output? Please past it here.

If it is a crash, can you please paste the stack trace that you can find in
the log file or on standard output? This is really useful for us!

Please provide any additional information below.

-Vij

Original issue reported on code.google.com by vijeeshk...@gmail.com on 6 Jun 2011 at 12:21

GoogleCodeExporter commented 9 years ago
Are you running out of memory (and start swapping) when BGSAVE is active?

You can disable the periodic BGSAVE by calling:

    CONFIG SET save ""

... and enable the AOF with:

    CONFIG SET appendonly yes
    BGREWRITEAOF

The last command will create a complete snapshot in AOF format. It uses the 
same technique as BGSAVE, so if you have problems with it, you may also have 
problems with BGREWRITEAOF. Make sure to call BGREWRITEAOF yourself 
periodically to avoid the AOF file from growing infinitely. An automatic 
trigger for rewriting is being added to 2.4.

Cheers,
Pieter

Original comment by pcnoordh...@gmail.com on 14 Jun 2011 at 7:04