Skip to content
This repository

Sometimes AOF can grow unlimited ? #716

Open
vsespb opened this Issue October 21, 2012 · 0 comments

1 participant

Victor Efimov
Victor Efimov

What will happen if someone rely on auto-AOF-rewrite, but redis server often restarts ?

According to this code https://github.com/antirez/redis/blob/unstable/src/redis.c#L946
the restart (in default config) triggered when AOF size > 2*original AOF size. And original aof size
is picked when server starts (or when AOF rewrite happening)

so if I restart server too often AOF will grow unlimited ?

I think there should be option to set max AOF size to trigger rewrite when it's reached.
or, at least, existing behavious should be documented.

p.s. note
in modern "cloud" environments it's sometimes common to kill/restart servers when deploy or in case of minor faulure etc
so redis restart can happen often (especially for development and staging environments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.