Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permanent AOF background rewrite with 2.4.1 #159

Closed
jweiss opened this issue Oct 25, 2011 · 1 comment
Closed

Permanent AOF background rewrite with 2.4.1 #159

jweiss opened this issue Oct 25, 2011 · 1 comment

Comments

@jweiss
Copy link

jweiss commented Oct 25, 2011

We have a 2.4.1 master with 3 slaves (2.4.1 all) and the master is continuously rewriting the AOF file in the background, causing high load on the disks:

[9180] 25 Oct 18:47:53 * SYNC append only file rewrite performed
[23062] 25 Oct 18:47:53 * Background AOF rewrite terminated with success
[23062] 25 Oct 18:47:53 * Parent diff successfully flushed to the rewritten AOF (0 bytes)
[23062] 25 Oct 18:47:53 * Background AOF rewrite successful
[23062] 25 Oct 18:47:53 * Background append only file rewriting started by pid 9244
[23062] 25 Oct 18:48:18 * Slave ask for synchronization
[23062] 25 Oct 18:48:18 * Starting BGSAVE for SYNC
[23062] 25 Oct 18:48:18 * Background saving started by pid 9632
[23062] 25 Oct 18:48:18 * Slave ask for synchronization
[23062] 25 Oct 18:48:18 * Waiting for end of BGSAVE for SYNC
[9632] 25 Oct 18:49:22 * DB saved on disk
[9244] 25 Oct 18:49:22 * SYNC append only file rewrite performed
[23062] 25 Oct 18:49:22 * Background AOF rewrite terminated with success
[23062] 25 Oct 18:49:22 * Parent diff successfully flushed to the rewritten AOF (0 bytes)
[23062] 25 Oct 18:49:22 * Background AOF rewrite successful
[23062] 25 Oct 18:49:22 * Background saving terminated with success
[23062] 25 Oct 18:49:22 * Background append only file rewriting started by pid 9654
[9654] 25 Oct 18:50:36 * SYNC append only file rewrite performed
[23062] 25 Oct 18:50:37 * Background AOF rewrite terminated with success
[23062] 25 Oct 18:50:37 * Parent diff successfully flushed to the rewritten AOF (0 bytes)
[23062] 25 Oct 18:50:37 * Background AOF rewrite successful
[23062] 25 Oct 18:50:37 * Background append only file rewriting started by pid 9943

Every time one background AOF rewrite finishes, the next one starts.

We tried several things to fix it, but all didn't help:

redis-cli config set auto-aof-rewrite-min-size 536870912000
redis-cli config get auto-aof-rewrite-percentage 100000
redis-cli config get auto-aof-rewrite-percentage 0
redis-cli config set appendonly no

The original config file: https://gist.github.com/1313833
The server info: https://gist.github.com/1313836

@antirez
Copy link
Contributor

antirez commented Oct 26, 2011

Hi, please see issue #161 for more information about this. Closing as it is a duplicate and the other thread contains more informations about the cause.

@antirez antirez closed this as completed Oct 26, 2011
Hailei pushed a commit to Hailei/redis that referenced this issue Aug 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants