Skip to content

Support MySQL multi-host and SRV connections - #11659

Open
verma-divyanshu-git wants to merge 5 commits into
temporalio:mainfrom
verma-divyanshu-git:mysql-multi-host-srv
Open

Support MySQL multi-host and SRV connections#11659
verma-divyanshu-git wants to merge 5 commits into
temporalio:mainfrom
verma-divyanshu-git:mysql-multi-host-srv

Conversation

@verma-divyanshu-git

@verma-divyanshu-git verma-divyanshu-git commented Aug 19, 2026

Copy link
Copy Markdown

What changed?

  • Accept comma-separated MySQL TCP addresses and tcp+srv DNS SRV records.
  • Resolve targets for each new connection and fail over across unavailable or read-only hosts.
  • Keep TLS configuration pool-local while preserving the existing tls-custom setting.

Why?

This lets Temporal fail over between MySQL endpoints without requiring a load balancer or VIP.

Fixes #10171.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)

Also ran race tests, changed-line lint, the MySQL persistence integration test, and a live endpoint failover test through a terminated TCP proxy.

Potential risks

This changes MySQL connection establishment. Existing single-host, password refresh, TLS, and read-only behavior remain covered by tests.

@verma-divyanshu-git
verma-divyanshu-git requested a review from a team August 19, 2026 22:21
@verma-divyanshu-git
verma-divyanshu-git requested review from a team as code owners August 19, 2026 22:21
@CLAassistant

CLAassistant commented Aug 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@verma-divyanshu-git

verma-divyanshu-git commented Aug 19, 2026

Copy link
Copy Markdown
Author

Hi @yycptt, this updates the MySQL connection path and preserves the password-refresh behavior added in #9879. When you have time, would you be willing to review it or route it to the right persistence owner? Thanks.

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 this pull request may close these issues.

MySQL persistence: support multi-host connectAddr and/or SRV-based endpoint discovery (no LB/VIP environments)

2 participants