© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
1 reply
Franco Pinto

Read replica connection pool

We are anyway facing a weird problem. We have 2 instances running connected to the Session pooler, we route some queries to the primary and some to the replica.

The pool connection pool configuration on our side looks like this:
Primary maximum pool size: 30 slots
Read replica maximum pool size: 15 slots

But when we check the pooler to database connections, we see stable primary one (2 instances with max 30 connections + other tools around 70-80), but the number of connections reported by the read replica is between 130-140, which doesn't make sense because we have half of slots available for this datasource.

How can this be explained? Is the primary DB balancing to the replica without us knowing?
image_15.png
image_14.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

read replica connection string doesn't work
SupabaseSSupabase / help-and-questions
4mo ago
Upgrade Pool Connection
SupabaseSSupabase / help-and-questions
3y ago
Unable to connect to read replica even using pooler
SupabaseSSupabase / help-and-questions
2mo ago
Read-replica promotion + PostgREST version
SupabaseSSupabase / help-and-questions
6mo ago