- Notifications
You must be signed in to change notification settings - Fork27
Add support for multiple hosts configuration#258
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:trunk
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
517cc4c tocfef3f1Comparemirromutth commentedMar 12, 2024
@jchrys It is going to be a big feature, so I will mark it to 1.2.0 |
b3114ae to487fdd6Compare9c49e9a tob5b6cdfCompare- Allow to use Mono for user and password- Add multiple hosts connection strategy- Add HA protocol support for multiple hosts- Add DNS SRV driver for HA protocol
b5b6cdf to7c9144aComparerahulforeleven commentedOct 25, 2024
Thank you for working on the multiple hosts support feature! I see this is still in draft—could you share any updates on when it might be available in an upcoming release? This functionality would be incredibly valuable for us. Thanks!" |
CLAassistant commentedMay 18, 2025
|
Uh oh!
There was an error while loading.Please reload this page.
Motivation:
Support for multiple hosts configuration.
Resolves#89
It alsoresolves#255 because if the user uses multiple hosts we have to resolve the hostname and port ourselves
Modification:
host/unixSocketand addaddHostto configure multiple hostsMono.zipfor user and password, because we have to receive and cache credential before we try to connect to multiple hostsr2dbc:mysql+srv:loadbalance://my-db-1,my-db-2/testautoReconnect/maxReconnectssupport,FailoverClientqueriesBeforeRetrySourceandsecondsBeforeRetrySourceUser can only configure one of:
host/portfor a single hostaddHostfor multiple hosts, it will be auto-converted fromConnectionFactoryOptions.HOSTunixSocketfor Unix Domain Socket.Result:
Support multiple hosts configuration with HA protocol.
Support DNS SRV Records for HA protocol.