Skip to content
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

Add an optional DATABASE_POOL_URL config #2085

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

alco
Copy link
Member

@alco alco commented Dec 3, 2024

This implements #1885.

When configured, the lock connection and the database pool will connect to this pooled URL.

By default, when DATABASE_POOL_URL is not set, all connections are open using the direct database connection URL configured with DATABASE_URL.

Things to add before merging:

  • Changeset
  • Docs
  • A test to check that all DB connections aside from the replication one are using the pool URL

@alco alco requested review from thruflo and balegas December 3, 2024 12:12
@alco alco force-pushed the alco/two-database-urls branch from a53b820 to afff898 Compare December 3, 2024 12:23
When configured, the lock connection and the database pool will connect
to this pooled URL.

By default, when DATABASE_POOL_URL is not set, all connections are open
using the direct database connection URL configured with DATABASE_URL.
@alco alco force-pushed the alco/two-database-urls branch from afff898 to 63676b9 Compare December 3, 2024 12:25
Base automatically changed from alco/ssl-fallback to main December 3, 2024 13:11
icehaunter
icehaunter previously approved these changes Dec 3, 2024
Copy link
Contributor

@icehaunter icehaunter left a comment

Choose a reason for hiding this comment

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

LGTM, but can we have a sibling PR for the cloud because otherwise after this we're breaking the new contract of StackSupervisor and NimbleOptions will complain there

@icehaunter icehaunter dismissed their stale review December 3, 2024 13:15

Quick demo PR, not intended for merging

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.

2 participants