You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
[-]Re-resolve address on connection failure[/-][+]Re-resolve server names on connection failure[/+]patrickeasters commentedon Apr 18, 2019
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 commentedon 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.
dormando commentedon Apr 4, 2025
I think this isn't implemented still.