sentinel parallel-syncs mymaster 1 automatically removed from config file

435 views
Skip to first unread message

George Chilumbu

unread,
Apr 10, 2017, 6:00:48 AM4/10/17
to Redis DB
Hi,

In my sentinel config file, i have set up "sentinel parallel-syncs mymaster 1" so that my slaves sync one at a time to ensure that some slaves continue to accept queries and avoid service interruption. But i found out that this is actually not working, and that the line "sentinel parallel-syncs mymaster 1" in the sentinel config file is being automatically deleted.

How can i permanently set this config to avoid slaves synching at the same time?

Thanks.
George.

George Chilumbu

unread,
Apr 10, 2017, 6:06:02 AM4/10/17
to Redis DB
Below is my basic config file:

bind 0.0.0.0
daemonize yes
dir "/var/lib/redis"
loglevel notice
logfile "/var/log/redis/redis-sentinel.log"
pidfile "/var/run/redis/redis-sentinel.pid"
port 26379
syslog-enabled yes
sentinel monitor mymaster master_ip_address 6379 2
sentinel down-after-milliseconds mymaster 10000
sentinel failover-timeout mymaster 180000
sentinel parallel-syncs mymaster 1
maxclients 4064

Jan-Erik Rediger

unread,
Apr 10, 2017, 9:05:14 AM4/10/17
to redi...@googlegroups.com
parallel-syncs defaults to 1. Sentinel might remove default
configuration values from the config.
In your case everything is thus working fine.
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

chilumb...@gmail.com

unread,
Apr 10, 2017, 9:47:02 AM4/10/17
to redi...@googlegroups.com
Hmm. Will perform a test again to make sure that the saves sync to the master one at a time.

Is there a way to check the values in sentinel confit file like how you can in Redis using "config get variable-name"? For example, check the value of "sentinel parallel-sync mymaster" ?

Sent from my iPhone
> You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/KgNLvsCx_XE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages