Skip to content

Commit

Permalink
Sentinel command renaming: document it into sentinel.conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jun 25, 2018
1 parent a8a76bd commit 8ba670f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sentinel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 8ba670f

Please sign in to comment.