Skip to content

Re-resolve server names on connection failure #93

Open

Description

@EmpireJones

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.

Activity

  1. changed the title [-]Re-resolve address on connection failure[/-] [+]Re-resolve server names on connection failure[/+] on Mar 14, 2019
  2. patrickeasters commented on Apr 18, 2019

    @patrickeasters

    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.

  3. anjmao commented on Aug 5, 2022

    @anjmao

    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.

  4. dormando commented on Apr 4, 2025

    @dormando
    Collaborator

    I think this isn't implemented still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions