Skip to content

Conversation

@luca3m
Copy link
Contributor

@luca3m luca3m commented Jul 9, 2014

Hi,

I wrote a RedicHA client which handles master discovering and failover when possible. Using sentinel as reference.

I tried my best to follow redic philosophy. What do you think about it? These are changes:

  1. Raise an exception when a client tries to write on a readonly slave, instead only returning RuntimeError
  2. Create a RedicHA class that handles this exception and CONNRefused one, asking sentinel again which is the master and reconnecting

thank you!

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.

1 participant