summaryrefslogtreecommitdiff
path: root/sentinel.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-09-04 11:30:08 +0200
committerantirez <antirez@gmail.com>2014-09-04 11:30:11 +0200
commitc9437fe5a3ccc2a29ef11e1222356cf4c580a7d7 (patch)
tree4d3add9994e675991bb4ebc2218eac201de1c01f /sentinel.conf
parentcd576a1aab9bc321a63c1aabac8d274e3ba20f26 (diff)
downloadredis-c9437fe5a3ccc2a29ef11e1222356cf4c580a7d7.tar.gz
Sentinel: clarify announce-ip/port options in sentinel.conf.
Diffstat (limited to 'sentinel.conf')
-rw-r--r--sentinel.conf21
1 files changed, 18 insertions, 3 deletions
diff --git a/sentinel.conf b/sentinel.conf
index be18888c0..4b3b79242 100644
--- a/sentinel.conf
+++ b/sentinel.conf
@@ -4,12 +4,27 @@
# The port that this sentinel instance will run on
port 26379
-# announce <ip>
-# The IP that other sentinels use to connect to this sentinel instance
+# sentinel announce-ip <ip>
+# sentinel announce-port <port>
+#
+# The above two configuration directives are useful in environments where,
+# because of NAT, Sentinel is reachable from outside via a non-local address.
+#
+# When announce-ip is provided, the Sentinel will claim the specified IP address
+# in HELLO messages used to gossip its presence, instead of auto-detecting the
+# local address as it usually does.
+#
+# Similarly when announce-port is provided and is valid and non-zero, Sentinel
+# will announce the specified TCP port.
+#
+# The two options don't need to be used together, if only announce-ip is
+# provided, the Sentinel will announce the specified IP and the server port
+# as specified by the "port" option. If only announce-port is provided, the
+# Sentinel will announce the auto-detected local IP and the specified port.
#
# Example:
#
-# sentinel announce 1.2.3.4
+# sentinel announce-ip 1.2.3.4
# dir <working-directory>
# Every long running process should have a well-defined working directory.