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

Re-resolve server names on connection failure #93

Open
EmpireJones opened this issue Mar 14, 2019 · 2 comments
Open

Re-resolve server names on connection failure #93

EmpireJones opened this issue Mar 14, 2019 · 2 comments

Comments

@EmpireJones
Copy link

EmpireJones commented Mar 14, 2019

Currently the server names are only resolved once, to optimize performance. However, this doesn't support dynamic environments well in which the name should be re-resolved.

I think that I can work around this by wrapping the library calls, and creating a new connection upon error (or maybe creating something which detects name resolution changes), but this doesn't seem ideal.

I considered periodically running SetServers, but I believe the ServerList isn't public in the client.

@EmpireJones EmpireJones changed the title Re-resolve address on connection failure Re-resolve server names on connection failure Mar 14, 2019
@patrickeasters
Copy link

I'm facing this as well. I have some workarounds in place, but it'd be nice to be able to update that server list or have it resolve the name each time it connects and let the OS handle DNS TTLs.

@anjmao
Copy link

anjmao commented Aug 5, 2022

Hi, if you run memcache in kubernetes we implemented https://github.com/castai/k8s-memcache-selector
It watches memcache k8s endpoints and updates server list.

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

3 participants