Browse Source

init project

rubyangxg 4 years ago
parent
commit
56b7d0e62b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docker-redis-sentinel-master/sentinel/sentinel.conf

+ 2 - 0
docker-redis-sentinel-master/sentinel/sentinel.conf

@@ -2,6 +2,8 @@ port 26379
 
 dir /tmp
 
+sentinel announce-ip $HOST_IP
+
 sentinel monitor $SENTINEL_NAME $HOST_IP 6479 $SENTINEL_QUORUM
 
 sentinel down-after-milliseconds $SENTINEL_NAME $SENTINEL_DOWN_AFTER