etcd (zookeeper-style service) and redis sentinel

428 views
Skip to first unread message

Andrew Armstrong

unread,
Feb 23, 2014, 4:47:49 PM2/23/14
to redi...@googlegroups.com
Hi,

1. Is anyone using the new zookeeper-style remote configuration service, "etcd" (https://github.com/coreos/etcd) with redis master/slave/sentinel setup?

I am preparing to enable better HA with Redis and would like to know if anyone us using the sentinel system with such a service to register the current master address etc.

2. What other scripts or system can someone share that lets services know which of your master/slave redis instances a service should connect to?

Thanks,
Andrew

Matt Stancliff

unread,
Feb 24, 2014, 10:55:02 AM2/24/14
to redi...@googlegroups.com

On Feb 23, 2014, at 4:47 PM, Andrew Armstrong <phpl...@gmail.com> wrote:

> 1. Is anyone using the new zookeeper-style remote configuration service, "etcd" (https://github.com/coreos/etcd) with redis master/slave/sentinel setup?
> I am preparing to enable better HA with Redis and would like to know if anyone us using the sentinel system with such a service to register the current master address etc.

Sentinel itself is a system for registering the current master address. You can think of it as a “Redis-only zookeeper."

> 2. What other scripts or system can someone share that lets services know which of your master/slave redis instances a service should connect to?

You find the current master by asking Sentinel directly: SENTINEL get-master-addr-by-name <master-name>
You can also subscribe to Sentinel updates to get real time notification of master promotions.

Now, the problem becomes finding the address of your Sentinels. But, those addresses can be static. If you can’t connect to one, just try another.

For ideal usage details, see: http://redis.io/topics/sentinel-clients; for more details about Sentinel internals, see http://redis.io/topics/sentinel


-Matt
Reply all
Reply to author
Forward
0 new messages