# Confusion about MPG connection limits

**URL:** <https://community.fly.io/t/confusion-about-mpg-connection-limits/26655>\
**Category:** Phoenix\
**Tags:** metrics, mpg, login-only\
**Created:** [December 17, 2025, 3:47pm UTC](https://community.fly.io/t/confusion-about-mpg-connection-limits/26655 "2025-12-17T15:47:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtsmills](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jtsmills/32/43030_2.png) [@jtsmills](https://community.fly.io/u/jtsmills)\
**Post date:** [December 17, 2025, 3:47pm UTC](https://community.fly.io/t/confusion-about-mpg-connection-limits/26655/1 "2025-12-17T15:47:19Z")

</div>

Hey folks, I am trying to tune my active pool connections etc for Ecto. On the `Connect` page it details some connection limits:

 ![image](https://global.discourse-cdn.com/fly1/original/3X/b/e/be7a97380246e5aa45ad912a9333081e0c305950.png)

But then the `Metrics` page details different ones:

 ![image](https://global.discourse-cdn.com/fly1/original/3X/d/8/d885abf2dd313d6d7d21f9b65a17d1a54e85cc5b.png)

I would like to understand that disparity. How many connections do I have access to?

Separately I just found this guide [Phoenix with Managed Postgres · Fly Docs](https://fly.io/docs/mpg/guides-examples/phoenix-guide/) and it suggests setting the pool connection relatively low (8). If I want to maximize throughput of the app why would I not use all more connections (say, 30/50)?

---

<div class="post-metadata">

**Author:** ![kyle](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kyle/32/50330_2.png) [@kyle](https://community.fly.io/u/kyle)\
**Post date:** [December 18, 2025, 5:52pm UTC](https://community.fly.io/t/confusion-about-mpg-connection-limits/26655/4 "2025-12-18T17:52:35Z")

</div>

Thanks for the question! The **Connect page** only showsPgBouncer settings currently: your cluster can accept up to 200 client connections from your apps, and will open up to 50 connections to Postgres. The **Metrics page** shows actual usage; but database connections there is Postgres’s own `max_connections` setting, not PgBouncer’s.

The reason Postgres allows 100 while PgBouncer only uses up to 50 is to leave headroom for direct connections, admin tasks, the reserve pool, and internal processes. So you effectively have access to 200 client connections through the pooler, which multiplex down to at most 50 actual Postgres connections.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [December 25, 2025, 5:53pm UTC](https://community.fly.io/t/confusion-about-mpg-connection-limits/26655/5 "2025-12-25T17:53:23Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
