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

Add options to support multiple redis instances behind the same hostname #21

Open
msoedov opened this issue Sep 29, 2017 · 0 comments
Open

Comments

@msoedov
Copy link

msoedov commented Sep 29, 2017

Hi,

We have a use case when we running N ( where N could be 10, 20 ....) redis servers with dynamic ip addresses and dns based service discovery. So we have a hostname like redis-privatenet.com which resolves to N servers.

My proposal is the following:

  1. Resolve hostname to list of ip addresses initially
  2. Re -resolve that hostname on connection failure to one of the nodes
  3. Re -resolve the hostname periodically (with ~30 sec inteterval) to discover recently joined redis nodes.

I am ready to make a patch just wanted to discuss the approach here first.

Any thoughts?

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

No branches or pull requests

1 participant