summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-01-30 18:33:16 +0100
committerantirez <antirez@gmail.com>2013-02-12 12:52:21 +0100
commit078882025ea50e0ed888713fba8ce28299de626a (patch)
treec88e4bbde92c4ff9c6f9a51d002cbfb9456893d0 /redis.conf
parente34a35a51194650ce7ef7df1047012c7eaad2957 (diff)
downloadredis-078882025ea50e0ed888713fba8ce28299de626a.tar.gz
PSYNC: work in progress, preview #2, rebased to unstable.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index 2f176f247..db1402795 100644
--- a/redis.conf
+++ b/redis.conf
@@ -227,6 +227,28 @@ slave-read-only yes
# be a good idea.
repl-disable-tcp-nodelay no
+# Set the replication backlog size. The backlog is a buffer that accumulates
+# slave data when slaves are disconnected for some time, so that when a slave
+# wants to reconnect again, often a full resync is not needed, but a partial
+# resync is enough, just passing the portion of data the slave missed while
+# disconnected.
+#
+# The biggest the replication backlog, the longer the time the slave can be
+# disconnected and later be able to perform a partial resynchronization.
+#
+# The backlog is only allocated once there is at least a slave connected.
+#
+# repl-backlog-size 1mb
+
+# After a master has no longer connected slaves for some time, the backlog
+# will be freed. The following option configures the amount of seconds that
+# need to elapse, starting from the time the last slave disconnected, for
+# the backlog buffer to be freed.
+#
+# A value of 0 means to never release the backlog.
+#
+# repl-backlog-ttl 3600
+
# The slave priority is an integer number published by Redis in the INFO output.
# It is used by Redis Sentinel in order to select a slave to promote into a
# master if the master is no longer working correctly.