From 764cc69e2bf447e72fc0858818c8fbd741feb525 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 24 Aug 2016 15:33:39 +0200 Subject: Document RDB preamble in AOF rewrites in redis.conf. --- redis.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/redis.conf b/redis.conf index b9217fdb4..a7b7f3a97 100644 --- a/redis.conf +++ b/redis.conf @@ -755,6 +755,20 @@ auto-aof-rewrite-min-size 64mb # will be found. aof-load-truncated yes +# When rewriting the AOF file, Redis is able to use an RDB preamble in the +# AOF file for faster rewrites and recoveries. When this option is turned +# on the rewritten AOF file is composed of two different stanzas: +# +# [RDB file][AOF tail] +# +# When loading Redis recognizes that the AOF file starts with the "REDIS" +# string and loads the prefixed RDB file, and continues loading the AOF +# tail. +# +# This is currently turned off by default in order to avoid the surprise +# of a format change, but will at some point be used as the default. +aof-use-rdb-preamble no + ################################ LUA SCRIPTING ############################### # Max execution time of a Lua script in milliseconds. -- cgit v1.2.1