summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-02-01 18:08:01 +0100
committerantirez <antirez@gmail.com>2016-02-01 18:08:01 +0100
commit5ac5e3ebd7da8f041ebd7c4d20020208a3066b2d (patch)
treedcb7671f7c0c0d65dde8ea42e87319d63d393b4a /redis.conf
parente27b9b1cec576a49a46a4d31d96e9d11cfc350f1 (diff)
downloadredis-5ac5e3ebd7da8f041ebd7c4d20020208a3066b2d.tar.gz
Cluster announce ip/port/bus-port documented in redis.conf.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index 9a6e52a44..c68fe694f 100644
--- a/redis.conf
+++ b/redis.conf
@@ -835,6 +835,39 @@ lua-time-limit 5000
# In order to setup your cluster make sure to read the documentation
# available at http://redis.io web site.
+########################## CLUSTER DOCKER/NAT support ########################
+
+# In certain deployments, Redis Cluster nodes address discovery fails, because
+# addresses are NAT-ted or because ports are forwarded (the typical case is
+# Docker and other containers).
+#
+# In order to make Redis Cluster working in such environments, a static
+# configuration where each node known its public address is needed. The
+# following two options are used for this scope, and are:
+#
+# * cluster-announce-ip
+# * cluster-announce-port
+# * cluster-announce-bus-port
+#
+# Each instruct the node about its address, client port, and cluster message
+# bus port. The information is then published in the header of the bus packets
+# so that other nodes will be able to correctly map the address of the node
+# publishing the information.
+#
+# If the above options are not used, the normal Redis Cluster auto-detection
+# will be used instead.
+#
+# Note that when remapped, the bus port may not be at the fixed offset of
+# clients port + 10000, so you can specify any port and bus-port depending
+# on how they get remapped. If the bus-port is not set, a fixed offset of
+# 10000 will be used as usually.
+#
+# Example:
+#
+# cluster-announce-ip 10.1.1.5
+# cluster-announce-port 6379
+# cluster-announce-bus-port 6380
+
################################## SLOW LOG ###################################
# The Redis Slow Log is a system to log queries that exceeded a specified