#Increase number of Postgres Clients

10 messages · Page 1 of 1 (latest)

dire beacon
#

How do I increase the number of clients that can connect to my postgres database?

frosty oxideBOT
#

Project ID: N/A

hushed wrenBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

bitter spruce
#

how many connections would you say you need? the default max is 100

crude flax
#

btw, i would recommend you to use something like pgbouncer instead of increasing the connection.

#

a pgbouncer template would be nice too 👀

bitter spruce
#

but op, if what should be done doesnt concern you, use this as the start command
docker-entrypoint.sh postgres -c max_connections=300 -c shared_buffers=80MB --port=5432

dire beacon
#

Gotcha, I only have 5 replicas of a project that uses the db through prisma so not sure how im hitting 100 connections. Ill have to check through my code to see whats going wrong