microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.81k stars 5.37k forks source link

Redis sentinel - duplicate error - dup-sentinel messages - version 3.0.504 #501

Open ohadinho opened 8 years ago

ohadinho commented 8 years ago

Here is the question thread from stackoverflow: http://stackoverflow.com/questions/39119809/redis-sentinel-duplicate-error-dup-sentinel-messages

I'm using Redis-x64-3.0.504 for windows, and I have configured three servers: Master1, Slave1 and Slave2.

I've started sentinel with this config in EACH one:

sentinel monitor mymaster 1.1.1.1 6379 2 1.1.1.1 is the Master1 IP address.

Here is a warning I'm constantly getting:

[5832] 24 Aug 12:41:49.608 * -dup-sentinel master mymaster 1.1.1.1 6379 # duplicate of 1.1.1.2:26379 1.1.1.2 is Slave2 IP address.

Actually, this message is thrown again and again exactly when I start the master sentinel (while the other slaves sentinels are running).

Any help ?

EDITED: I've encountered this question: http://stackoverflow.com/questions/22641487/redis-2-8-7-sentinel-environment-configuration-questions-for-linux-how-to-make

One responded that you shouldn't run senitnel on master but that's not what I've read in the docs.