How can I support the Redis sentinel architecture using StackExchange.Redis?
Asked Answered
R

1

20

My application uses the StackExchange.Redis package and I started using the sentinel architecture in order to support high availability and failures.

I've search the web, trying to find the correct way I should use the ConnectionMultiplexer object while using the sentinel architecture and couldn't really find a useful answer.

Some posts say that it doesn't support it yet or partially supports it, some tell you to add all your redis connection addresses to the connection string and some tell you that they provided a custom implementation by subscribing to events.

So, does the ConnectionMultiplexer support this kind of architecture?
If the answer is yes, how should my connection string look like?

Rafaelle answered 10/11, 2016 at 16:48 Comment(0)
C
4

You might be looking for this:

https://github.com/StackExchange/StackExchange.Redis/pull/406

Crucifixion answered 18/11, 2016 at 9:14 Comment(1)
TL;DR: Sentinel support has been added with this PR. The required configuration for such a connection is documented here.Terrazzo

© 2022 - 2024 — McMap. All rights reserved.