-
Notifications
You must be signed in to change notification settings - Fork 444
Multi subnet failover using dns resolve #346
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
Multi subnet failover using dns resolve #346
Conversation
use => syntax for passing callbacks so that 'this' is preserved only use multiConnect when the address count is > 1
|
Hey @chrislukkk, first of all, thank you for the work on this. Multi Subnet failover is a great feature to have as part of tedious. 👍 There is a few things that need to be fixed up before this will be ready to be merged:
Do you feel up to the task of extending this PR to implement these missing functionalities? |
src/connection.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer dns over Dns here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with new commit
2. fix if else format 3. concise addresses check
|
Thanks @chrislukkk for the fix-ups. |
|
Hi @arthurschreiber, Thanks a lot for the thorough code review! Regarding to the things you mentioned: a. You are correct that TDS client by default connects sequentially if there are multiple To support sequential connection, however, will change the default connect behavior of tedious, because tedious by default use b. I will add the logic to check if the |
|
Hey @chrislukkk Thanks for all the fixups. As you already found out, there is an |
|
Hi @arthurschreiber, is there any update one the process of this PR? Thank you! |
|
Hey @chrislukkk I'm really sorry this has been dragged on so long. I'll see if I can carve out a bit of free time to review this thoroughly and get this change integrated. 👍 |
|
Hey @chrislukkk, I'm closing this in favor of #362. Please take a look and let me know what you think! |
Implement multi subnet failover #183 using dns resolve to resolve multiple ips from one host.