[Redis]-提供Redis Sentinel之API查詢

Redis建置學習心得

若是要能讓AP端連線到Redis Sentinel上進行相關的查詢, 例如master的位置, 目前各監控的group裡誰是master… 等資訊, 那麼就需要將下列在sentinel configure檔裡的設定打開來.

 

# Before doing that MAKE SURE the instance is protected from the outside

# world via firewalling or other means.

#

# For example you may use one of the following:

#

# bind 127.0.0.1 192.168.1.1

#

protected-mode no