Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3cc31da3
Commit
3cc31da3
authored
Sep 04, 2014
by
antirez
Browse files
Sentinel: clarify announce-ip/port options in sentinel.conf.
parent
8c3507aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
sentinel.conf
View file @
3cc31da3
...
@@ -4,12 +4,27 @@
...
@@ -4,12 +4,27 @@
# The port that this sentinel instance will run on
# The port that this sentinel instance will run on
port
26379
port
26379
# announce <ip>
# sentinel announce-ip <ip>
# The IP that other sentinels use to connect to this sentinel instance
# 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:
# Example:
#
#
# sentinel announce 1.2.3.4
# sentinel announce
-ip
1.2.3.4
# dir <working-directory>
# dir <working-directory>
# Every long running process should have a well-defined working directory.
# Every long running process should have a well-defined working directory.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment