DAN
DAN
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
Thanks for the help!
34 replies
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
I'm gonna try setting idle_timeout, I wonder if the max connections (default 10) is getting reached and the railway pods are running out of memory
34 replies
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
hmm I don't see that anywhere in the options interface
34 replies
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
pool minimum? Do you mean max number of connections?
34 replies
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
@Brody Sorry just seeing this. Yes I believe I am using pooled connections, which is the default behavior in the postgres library. Do you think I need to set a timeout option like idle_timeout here? https://github.com/porsager/postgres#connection-timeout
34 replies
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
It's a bun app running JS on server and client. Using the postgres library (https://github.com/porsager/postgres) to connect to the DB. Not doing anything special with networking that I know of
34 replies
RRailway
Created by DAN on 11/6/2023 in #✋|help
App periodically loses connection to postgres
80d4d55f-409c-4c75-9ab3-61d3cefe2e46
34 replies