Skip to content

Conversation

@edgurgel
Copy link
Member

@edgurgel edgurgel commented May 13, 2025

What kind of change does this PR introduce?

Log the amount of required connections so it's clear why Realtime refused to connect.

What is the current behavior?

RealtimeChannel logs the following:

{:error, :tenant_db_too_many_connections} ->
msg = "Database can't accept more connections, Realtime won't connect"
Logging.log_error_message(:error, "DatabaseLackOfConnections", msg)

Maybe the above can be removed given that now we will log at the Database.check_tenant_connection level?

What is the new behavior?

[error] DatabaseLackOfConnections: Only 91 available connections. At least 126 connections are required.

Additional context

This way it's a bit more clear what's going on
@edgurgel edgurgel requested a review from filipecabaco May 13, 2025 04:08
@edgurgel edgurgel marked this pull request as ready for review May 13, 2025 04:08
@vercel
Copy link

vercel bot commented May 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
realtime-demo ⬜️ Ignored (Inspect) Visit Preview May 13, 2025 4:10am

@edgurgel edgurgel force-pushed the chore/enhance-log-lack-of-connections branch from 7d1ac6f to ddcbd78 Compare May 13, 2025 04:10
@coveralls
Copy link

coveralls commented May 13, 2025

Coverage Status

coverage: 83.129% (-0.3%) from 83.443%
when pulling ddcbd78 on chore/enhance-log-lack-of-connections
into 1ffc07d on main.

@filipecabaco
Copy link
Member

this should be a fix branch and fix title so we merge it and triggers version bump of patch

Copy link
Member

@filipecabaco filipecabaco left a comment

Choose a reason for hiding this comment

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

fix branch vs chore 👀

@edgurgel
Copy link
Member Author

Closing in favour o #1373

@edgurgel edgurgel closed this May 13, 2025
@edgurgel edgurgel deleted the chore/enhance-log-lack-of-connections branch August 18, 2025 09:05
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.

4 participants