R
Railway11mo ago
Senpai

Increase MAX CONNECTIONS for Postgres

Is there any way to increase max connections? I'm already using PgBouncer but we are running extensive database operations and I just want to stay in the green and make sure I can up my limits. 100 may not be enough on scale for us
9 Replies
Percy
Percy11mo ago
Project ID: N/A
Senpai
SenpaiOP11mo ago
N/A
Brody
Brody11mo ago
if you're using the bitnami pgbouncer image, or my template - https://railway.app/new/template/OpUzwe you should be able to set / change the PGBOUNCER_MAX_CLIENT_CONN from the default value of 120 to a higher value
Senpai
SenpaiOP11mo ago
I'll try it and let you know Hey I'm using PGBouncer and everything works - however, I still need to increase the throughput. On the pro plan with the ram provided I can have up to 2K connections. Is there any way I can change the conf file of postgres on railway? @Brody
Brody
Brody11mo ago
you could provide your own postgres image with a modified config file built into the image but are these settings not something you can configure through making queries on the database? or even by setting additional run flags via the start command?
Senpai
SenpaiOP11mo ago
That did the trick 👍
Brody
Brody11mo ago
awsome, mind telling me what your chosen solution was?
Senpai
SenpaiOP11mo ago
altered max_connections and shared_buffers via sql statement
Brody
Brody11mo ago
gotcha, thanks!
Want results from more Discord servers?
Add your server