summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-25 14:20:23 +0200
committerantirez <antirez@gmail.com>2014-07-25 14:20:23 +0200
commit49c817c2502ee98a770ae93c4479681cef27a790 (patch)
tree2e416b771f33f30bc3d4295fac73e39455390561 /redis.conf
parentc22fc1ac6f5fe77b13a4cba41e57701d8d424c8d (diff)
downloadredis-49c817c2502ee98a770ae93c4479681cef27a790.tar.gz
Example redis.conf: improve slaveof description.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf15
1 files changed, 12 insertions, 3 deletions
diff --git a/redis.conf b/redis.conf
index bd0a09f02..5eb1beebd 100644
--- a/redis.conf
+++ b/redis.conf
@@ -189,9 +189,18 @@ dir ./
################################# REPLICATION #################################
# Master-Slave replication. Use slaveof to make a Redis instance a copy of
-# another Redis server. Note that the configuration is local to the slave
-# so for example it is possible to configure the slave to save the DB with a
-# different interval, or to listen to another port, and so on.
+# another Redis server. A few things to understand ASAP about Redis replication.
+#
+# 1) Redis replication is asynchronous, but you can configure a master to
+# stop accepting writes if it appears to be not connected with at least
+# a given number of slaves.
+# 2) Redis slaves are able to perform a partial resynchronization with the
+# master if the replication link is lost for a relatively small amount of
+# time. You may want to configure the replication backlog size (see the next
+# sections of this file) with a sensible value depending on your needs.
+# 3) Replication is automatic and does not need user intervention. After a
+# network partition slaves automatically try to reconnect to masters
+# and resynchronize with them.
#
# slaveof <masterip> <masterport>