Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis Sentinel support #110

Merged
merged 1 commit into from
Nov 16, 2016
Merged

Redis Sentinel support #110

merged 1 commit into from
Nov 16, 2016

Conversation

IlyaSkriblovsky
Copy link
Owner

This patch adds support for service discovery and automatic failover using Redis Sentinel.

Sentinel.master_for() and Sentinel.slave_for() create a connection pool that hits Sentinel for an IP address every time it is going to connect to Redis.

I am already using it in production for about 5 months and it looks reliable enough on failing over when master node is going down.

Code review would be welcomed!

@IlyaSkriblovsky
Copy link
Owner Author

Since there is no feedback, seems I need to take courage and merge this by myself ;)

@fiorix fiorix merged commit 132843b into IlyaSkriblovsky:master Nov 16, 2016
@fiorix
Copy link
Collaborator

fiorix commented Nov 16, 2016

Hey @IlyaSkriblovsky, my apologies for not being responsive in a timely manner here. I glanced through the diff and it looks alright. This is much appreciated, you rock. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants