Skip to content

HA connection, handling failover with sentinel#5

Open
luca3m wants to merge 6 commits into
amakawa:masterfrom
luca3m:ha-connection
Open

HA connection, handling failover with sentinel#5
luca3m wants to merge 6 commits into
amakawa:masterfrom
luca3m:ha-connection

Conversation

@luca3m

@luca3m luca3m commented Jul 9, 2014

Copy link
Copy Markdown
Contributor

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