Skip to content

Commit

Permalink
Sentinel: document how to undo a renamed command.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Sep 17, 2018
1 parent c560ade commit 378218d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sentinel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,15 @@ sentinel deny-scripts-reconfig yes
# instead of the normal ones. For example if the master "mymaster", and the
# associated replicas, have "CONFIG" all renamed to "GUESSME", I could use:
#
# sentinel rename-command mymaster CONFIG GUESSME
# 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.
#
# In order to set a command back to its original name (undo the renaming), it
# is possible to just rename a command to itsef:
#
# SENTINEL rename-command mymaster CONFIG CONFIG

0 comments on commit 378218d

Please sign in to comment.