Skip to content

Add a DelegatingReplicaJpaTransactionManager to handle multiple replicas#3005

Open
gbrodman wants to merge 1 commit intogoogle:masterfrom
gbrodman:multipleReplicas
Open

Add a DelegatingReplicaJpaTransactionManager to handle multiple replicas#3005
gbrodman wants to merge 1 commit intogoogle:masterfrom
gbrodman:multipleReplicas

Conversation

@gbrodman
Copy link
Copy Markdown
Collaborator

@gbrodman gbrodman commented Apr 9, 2026

This will allow us to spread the load across multiple Postgres replica instances which should help with latency and stability.


This change is Reviewable

@gbrodman
Copy link
Copy Markdown
Collaborator Author

gbrodman commented Apr 9, 2026

Tested on alpha by adding a second replica, including both replica names on the SQL_REPLICA_CONN_NAMES keyring secret, and removing the old SQL_REPLICA_CONN_NAME secret

@gbrodman gbrodman requested a review from weiminyu April 9, 2026 21:04
Copy link
Copy Markdown
Collaborator

@weiminyu weiminyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weiminyu reviewed 12 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gbrodman).

@gbrodman
Copy link
Copy Markdown
Collaborator Author

for posterity, i also tested in crash without changing any of the secret manager keys or the replica situation and it still worked

@gbrodman gbrodman added this pull request to the merge queue Apr 10, 2026
@gbrodman gbrodman removed this pull request from the merge queue due to a manual request Apr 10, 2026
This will allow us to spread the load across multiple Postgres replica
instances which should help with latency and stability.
@gbrodman gbrodman enabled auto-merge April 10, 2026 16:10
@gbrodman
Copy link
Copy Markdown
Collaborator Author

(most recent update was just changing the copyright date since gemini kept overwriting it with 2024 for some reason)

@gbrodman gbrodman added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 10, 2026
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.

3 participants