summaryrefslogtreecommitdiff
path: root/sentinel.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-06-25 17:45:01 +0200
committerantirez <antirez@gmail.com>2018-06-25 17:45:01 +0200
commit8ba670f55c88c0412e5646e35cf02fda655b8ed8 (patch)
tree77db9bb7a89588a3c651091b0ab55ed5b8229c26 /sentinel.conf
parenta8a76bda1be22687859948de54a80538e28769b9 (diff)
downloadredis-8ba670f55c88c0412e5646e35cf02fda655b8ed8.tar.gz
Sentinel command renaming: document it into sentinel.conf.
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 38b097254..3703c7394 100644
--- a/sentinel.conf
+++ b/sentinel.conf
@@ -203,3 +203,22 @@ sentinel failover-timeout mymaster 180000
sentinel deny-scripts-reconfig yes
+# REDIS COMMANDS RENAMING
+#
+# Sometimes the Redis server has certain commands, that are needed for Sentinel
+# to work correctly, renamed to unguessable strings. This is often the case
+# of CONFIG and SLAVEOF in the context of providers that provide Redis as
+# a service, and don't want the customers to reconfigure the instances outside
+# of the administration console.
+#
+# In such case it is possible to tell Sentinel to use different command names
+# instead of the normal ones. For example if the master "mymaster", and the
+# associated slaves, have "CONFIG" all renamed to "GUESSME", I could use:
+#
+# sentinel rename-command mymaster CONFIG GUESSME
+#
+# After such configuration is set, every time Sentinel would use CONFIG it will
+# use GUESSME instead. Note that there is no actual need to respect the command
+# case, so writing "config guessme" is the same in the example above.
+#
+# SENTINEL SET can also be used in order to perform this configuration at runtime.