summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-08-24 15:33:39 +0200
committerantirez <antirez@gmail.com>2016-08-24 15:33:44 +0200
commit764cc69e2bf447e72fc0858818c8fbd741feb525 (patch)
tree698d4666a85b97e7cb833a66d65e226987fe56bd /redis.conf
parent543e25efa6e25e96f976f68ed16aa0c2ff6fa91b (diff)
downloadredis-764cc69e2bf447e72fc0858818c8fbd741feb525.tar.gz
Document RDB preamble in AOF rewrites in redis.conf.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf14
1 files changed, 14 insertions, 0 deletions
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.