Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Draft
mirromutth wants to merge2 commits intotrunk
base:trunk
Choose a base branch
Loading
from89-featuresupports-multiple-host-configuration

Conversation

@mirromutth
Copy link
Collaborator

@mirromutthmirromutth commentedMar 12, 2024
edited
Loading

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:

  • Refactorhost/unixSocket and addaddHost to configure multiple hosts
  • Allow to useMono.zip for user and password, because we have to receive and cache credential before we try to connect to multiple hosts
  • Add multiple hosts connection strategy
  • Add HA protocol support for multiple hosts
  • Allow to use DNS SRV records for HA protocol, liker2dbc:mysql+srv:loadbalance://my-db-1,my-db-2/test
  • AddautoReconnect/maxReconnects support,FailoverClient
  • Add failover events support and description
  • Add reconnection strategy
  • Add get back to primary host for default HA protocol,queriesBeforeRetrySource andsecondsBeforeRetrySource

User can only configure one of:

  • host/port for a single host
  • addHost for multiple hosts, it will be auto-converted fromConnectionFactoryOptions.HOST
  • unixSocket for Unix Domain Socket.

Result:

Support multiple hosts configuration with HA protocol.

Support DNS SRV Records for HA protocol.

jchrys reacted with eyes emoji
@mirromutthmirromutth added the enhancementNew feature or request labelMar 12, 2024
@mirromutthmirromutthforce-pushed the89-featuresupports-multiple-host-configuration branch from517cc4c tocfef3f1CompareMarch 12, 2024 06:14
@mirromutth
Copy link
CollaboratorAuthor

@jchrys It is going to be a big feature, so I will mark it to 1.2.0

jchrys reacted with thumbs up emoji

@mirromutthmirromutth added this to the1.2.0 milestoneMar 12, 2024
@mirromutthmirromutthforce-pushed the89-featuresupports-multiple-host-configuration branch 5 times, most recently fromb3114ae to487fdd6CompareMarch 18, 2024 02:20
@mirromutthmirromutthforce-pushed the89-featuresupports-multiple-host-configuration branch from9c49e9a tob5b6cdfCompareMarch 22, 2024 10:31
- 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
@mirromutthmirromutthforce-pushed the89-featuresupports-multiple-host-configuration branch fromb5b6cdf to7c9144aCompareApril 5, 2024 10:10
@rahulforeleven
Copy link

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!"

lunakillz reacted with thumbs up emoji

@jchrysjchrys removed this from the1.4.0 milestoneFeb 16, 2025
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign ourContributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let usrecheck it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

enhancementNew feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Error connecting to mysql inside the docker [feature]Supports Multiple host configuration.

5 participants

@mirromutth@rahulforeleven@CLAassistant@jchrys

[8]ページ先頭

©2009-2025 Movatter.jp