-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hi brother,
When i run your repo, on 3 node VM host with default config it work OK,But when i try to set password for redis with option pass to redis command , failover is fail.Could you help me?? Many thanks.
I send entrypoint script:
#!/bin/sh
tee /etc/redis/sentinel.conf <<EOF
port 26379
daemonize yes
logfile "/var/log/sentinel.log"
pidfile "var/run/sentinel.pid"
dir "/var/lib/redis/sentinel"
sentinel monitor docker-cluster $MASTER_HOST 6379 $SENTINEL_QUORUM
sentinel down-after-milliseconds docker-cluster $SENTINEL_DOWN_AFTER
sentinel parallel-syncs docker-cluster 1
sentinel failover-timeout docker-cluster $SENTINEL_FAILOVER
EOF
redis-sentinel /etc/redis/sentinel.conf
if [ "$IS_SLAVE" == true ]; then
redis-server --slaveof $MASTER_HOST 6379 --requirepass eYVX7EKP --masterauth eYVX7EKP
else
redis-server
fi
Log sentinel:
10:X 27 May 2023 10:16:47.197 # Sentinel ID is 3459d3078223a5ba7219ef8737f8748c25db19cf
10:X 27 May 2023 10:16:47.197 # +monitor master docker-cluster 10.101.20.86 6379 quorum 2
10:X 27 May 2023 10:16:47.949 * +sentinel sentinel 475fdf18592ee3e8a57f4982e84b86b58c927241 172.31.0.3 26379 @ docker-cluster 10.101.20.86 6379
10:X 27 May 2023 10:16:49.002 # +sdown sentinel 475fdf18592ee3e8a57f4982e84b86b58c927241 172.31.0.3 26379 @ docker-cluster 10.101.20.86 6379
10:X 27 May 2023 10:16:57.496 * +sentinel sentinel 4cface6fbf96ca3a41a81f433a95e2438c4dafef 172.30.0.2 26379 @ docker-cluster 10.101.20.86 6379
10:X 27 May 2023 10:16:58.516 # +sdown sentinel 4cface6fbf96ca3a41a81f433a95e2438c4dafef 172.30.0.2 26379 @ docker-cluster 10.101.20.86 6379
10:X 27 May 2023 10:19:30.271 # +sdown master docker-cluster 10.101.20.86 6379