Discussion:
[redis-db] Can I have 3 Redis Sentinel nodes managing 2 redis nodes?
Cody R
2018-09-26 17:29:11 UTC
Permalink
I see for failover I need 3 Sentinels to each a quorum, my question is
right now we just have 2 redis servers in a master-slave relationship, Can
I configure sentinel on those 2 + some other random server (since I hear it
doesn't use much resources) and use it for failover between only 2 nodes,
or does it require 3 redis nodes as well?

Thanks!
--
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+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
h***@gmail.com
2018-09-27 12:14:06 UTC
Permalink
You can certainly have a different number of Sentinels than Redis servers.
Post by Cody R
I see for failover I need 3 Sentinels to each a quorum, my question is
right now we just have 2 redis servers in a master-slave relationship, Can
I configure sentinel on those 2 + some other random server (since I hear it
doesn't use much resources) and use it for failover between only 2 nodes,
or does it require 3 redis nodes as well?
Thanks!
--
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+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Abioy Sun
2018-09-28 09:10:40 UTC
Permalink
Yes.
But better read the doc below to be aware of possible issues.

https://redis.io/topics/sentinel#example-3-sentinel-in-the-client-boxes
Post by h***@gmail.com
You can certainly have a different number of Sentinels than Redis servers.
Post by Cody R
I see for failover I need 3 Sentinels to each a quorum, my question is
right now we just have 2 redis servers in a master-slave relationship, Can
I configure sentinel on those 2 + some other random server (since I hear it
doesn't use much resources) and use it for failover between only 2 nodes,
or does it require 3 redis nodes as well?
Thanks!
--
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
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Salvatore Sanfilippo
2018-09-28 09:45:54 UTC
Permalink
To have two Redis instances (master and slave) and three Sentinel
node, is definitely a good setup if you just want a reliable failover.
However something is down or not in a relative way, that is, depending
on where do you observe it. Having three instances with master - slave
- slave with the sentinels in each node has a given set of properties.
Having the Sentinels in the frontends change the properties of the
system. The Sentinel doc is explicit about that, but for normal
failover, your setup is ok.On Thu, Sep 27, 2018 at 8:50 AM Cody R
I see for failover I need 3 Sentinels to each a quorum, my question is right now we just have 2 redis servers in a master-slave relationship, Can I configure sentinel on those 2 + some other random server (since I hear it doesn't use much resources) and use it for failover between only 2 nodes, or does it require 3 redis nodes as well?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs https://redislabs.com

"If a system is to have conceptual integrity, someone must control the
concepts."
— Fred Brooks, "The Mythical Man-Month", 1975.
--
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+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Loading...