Error: remaining connection slots are reserved for non-replication superuser connections

Strapi is requesting too many connections to the Posgres db. However, this is strange that it would hit the connection limit, as there are at most 1-2 users at a time at the moment (as we are on testing website).

I’ve discovered that a few others who have deployed Strapi to App Engine/Cloud SQL are experiencing the same thing - Error: remaining connection slots are reserved for non-replication superuser connections. sorry, too many clients already - #8 by gkkirilov.

One person suggested that they upgraded their Postgres db from db-f1-micro (our current setup) to db-g1-small (the next tier up), and that seems to have fixed it for them. However, I’m trying to find a way to fix it without resorting to that as it would bump up my monthly bill.

Any help would be appreciated :slight_smile:

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version: