summaryrefslogtreecommitdiff
path: root/sentinel.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-09-26 18:59:54 +0200
committerantirez <antirez@gmail.com>2012-09-27 13:06:17 +0200
commitdfb7194cba92a7e9f86e24aacaabcd756aac5b12 (patch)
tree19be982fa08645706eba89e4f3144ccbc0e53ce3 /sentinel.conf
parentb8ce9a84c57eba13a157d7c1074254b5ce6bebd3 (diff)
downloadredis-dfb7194cba92a7e9f86e24aacaabcd756aac5b12.tar.gz
Sentinel: Support for AUTH.
Diffstat (limited to 'sentinel.conf')
-rw-r--r--sentinel.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/sentinel.conf b/sentinel.conf
index 34d185c4b..94169ee8f 100644
--- a/sentinel.conf
+++ b/sentinel.conf
@@ -13,6 +13,25 @@ port 26379
# The valid charset is A-z 0-9 and the three characters ".-_".
sentinel monitor mymaster 127.0.0.1 6379 2
+# sentinel auth-pass <master-name> <password>
+#
+# Set the password to use to authenticate with the master and slaves.
+# Useful if there is a password set in the Redis instances to monitor.
+#
+# Note that the master password is also used for slaves, so it is not
+# possible to set a different password in masters and slaves instances
+# if you want to be able to monitor these instances with Sentinel.
+#
+# However you can have Redis instances without the authentication enabled
+# mixed with Redis instances requiring the authentication (as long as the
+# password set is the same for all the instances requiring the password) as
+# the AUTH command will have no effect in Redis instances with authentication
+# switched off.
+#
+# Example:
+#
+# sentinel auth-pass mymaster MySUPER--secret-0123passw0rd
+
# sentinel down-after-milliseconds <master-name> <milliseconds>
#
# Number of milliseconds the master (or any attached slave or sentinel) should