Redis建置學習心得
如果先前在master上有建立requirepass的設定, 也就是要連線到master上就要輸入密碼的設定, 那麼, 在sentinel連線也要指定密碼, 下列這個在configure檔案裡的參數可以指定
# 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 apgp1 MySUPER--secret-0123passw0rd