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

Periodically refresh Cassandra cluster topology #46

Closed
drolando opened this issue Dec 7, 2018 · 0 comments
Closed

Periodically refresh Cassandra cluster topology #46

drolando opened this issue Dec 7, 2018 · 0 comments

Comments

@drolando
Copy link
Contributor

drolando commented Dec 7, 2018

Afaict lua-cassandra doesn't automatically detect changes in the ring topology. You have to manually call cluster:refresh() for it to pick up any change.

This is a problem when we're replacing nodes in the C* cluster since the driver will keep trying to connect to the old ones and ignore any new host.

We should just call refresh() even N seconds, ideally after the response has been returned.

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 a pull request may close this issue.

1 participant