Skip to content

Reconnection strategy - round-robin between instances #68

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

Closed
sharonovd opened this issue Sep 5, 2018 · 3 comments
Closed

Reconnection strategy - round-robin between instances #68

sharonovd opened this issue Sep 5, 2018 · 3 comments

Comments

@sharonovd
Copy link

Use-case: tarantool is deployed as a geo-distributed cluster, and when one DC goes down, application must switch to reserve DC with minimal service disruption.

Proposal 1: add built-in reconnect strategy which would take several connection URI's as a config, and would quickly to establish connection to them in a circle, returning the first succesful one.
Edge-case: if all URIs are unavailable, return error.

Proposal 2: implement overridable connection strategy class (as in tarantool-java), and provide proposal 1 as example.

@funny-falcon
Copy link

imho, it will be better to add it as subpackage by managing several tarantool.Connection.

BTW, which way it should determine new master? Or is your setup multimaster cluster?

@sharonovd
Copy link
Author

I did not get you proposal at full extent - but it seems viable as well.

Regarding your question - yes, such failover strategy works on multimaster setup (e. g. active-hot standby)

@sharonovd
Copy link
Author

Done in #71

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

No branches or pull requests

2 participants