Skip to content

Conversation

@bigmarvin
Copy link

This is essential when memcached cluster is built on cloud infra, e.g. k8s, where nodes move and their ips vary.

@bigmarvin bigmarvin force-pushed the master branch 2 times, most recently from 918325e to e8d1be2 Compare August 31, 2020 13:06
This is essential when memcached cluster is built on cloud infra, e.g.
k8s, where nodes move and their ips vary.
@toscott
Copy link

toscott commented Aug 4, 2023

Thank you for this. Saved us some headache.

Comment on lines +440 to +441
socketAddress = resolvedAddress;
getLogger().info("node address changed from %s to %s",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR. Really saved us when we encountered this issue in production )

If anyone else comes across this pull request, I suggest adding this line so that the IP address in the logs is updated as well.

Suggested change
socketAddress = resolvedAddress;
getLogger().info("node address changed from %s to %s",
socketAddress = resolvedAddress;
connection.setName("Memcached IO over " + connection);
getLogger().info("node address changed from %s to %s",

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.

3 participants