Reputation: 1
I am trying to set up sentinel using two redis nodes. Please find inline the conf file.
port 16371
dir "C:\Program Files\Redis\16371\"
loglevel notice
logfile "C:\Program Files\Redis\logs\16371.log"
sentinel monitor ExampleMaster 127.0.0.1 6371 1
sentinel down-after-milliseconds ExampleMaster 3000
sentinel failover-timeout ExampleMaster 6000
When I am trying to run server with this configuration I am getting following error:
* FATAL CONFIG FILE ERROR * Reading the configuration file, at line 5
'sentinel monitor ExampleMaster 127.0.0.1 6371 1'
Bad directive or wrong number of arguments
Can someone help me to fix this. TIA :)
Upvotes: 0
Views: 4043
Reputation: 1
problem resolved. I was missing auth-pass entry in redis-sentinel. Second I noticed in redis 6.0.6 that the auth-pass entry should mentioned behind the monitor line and the service become started
Upvotes: 0
Reputation: 489
quarom needs to be min 2
sentinel monitor ExampleMaster 127.0.0.1 6371 2
Upvotes: 0