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 config for controlling node ip resolution ordering #131

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mini-ninja-64
Copy link

@mini-ninja-64 mini-ninja-64 commented Nov 6, 2024

Hello,

During node discovery, when ZDM proxy finds an entry in system.peers and system.local it currently will always prefer node IP addresses returned by system.local. Some Cassandra implementations handle system.local & system.peer tables differently, when the system.peer table contains ALL nodes in the cluster and the ip addresses from system.local are invalid or should not be used then zdm-proxy will currently not work.

This PR adds 2 new config properties (both defaulting to true, to maintain backwards compatability):

  • OriginPreferIpFromSystemLocal - Sets origin clusters to prefer IP address from system.local
  • TargetPreferIpFromSystemLocal - Sets target clusters to prefer IP address from system.local

These can be used to control the resolution order of IP addresses and would allow for DataStax customers to better migrate from other Cassandra providers.

I am putting this PR out in its current form as an initial conversation starter, I am more than happy to add test coverage for this change, or make other changes, if it is a feature DataStax approves of.

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.

1 participant