My strapi + postgres sql is always disconnect when idle a long time
I have monitor for a month. I see my service always down with these error
LOG: could not receive data from client: Operation timed out
It always happen when service idle around for 2 hours later24 Replies
Project ID:
04ff73c6-ae95-43b1-a420-8a274e65c9e2
04ff73c6-ae95-43b1-a420-8a274e65c9e2
Hi brody
set
pool.min
to 0
like so https://github.com/railwayapp-templates/strapi/blob/main/config/database.js#L12for currently I have set to 2
let try and I will update you later. Thank bro
sounds good!
needs to be zero when in a docker environment
Hi bro It still have an issue
here is my project id https://railway.app/project/04ff73c6-ae95-43b1-a420-8a274e65c9e2/logs
Railway
Log Explorer
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
@Brody
no need for the ping please #🛂|readme #5
show me how you set pool.min to zero
here is my database.js
can you use this database.js instead?
you would need to add the missing service variables to your service first
I have updated, let see tomorrow, thank bro
Ah i see, sorry for misunderstanding
Wow It's really good template, I think it should work
let see tomorrow
sounds good
In railway can I seperate billing on each project depends on my clients
I mean I have client A -> for A billing, then client B in my same email account -> then B billing
railway doesn't offer a way to do that, you'd have to write up your own invoices for your clients manually with invoicing software of your choosing
ok thanks, but any plan in future ?
there has been talks about it, but it's relatively low priority
I will say, if you have clients, you shouldn't be on the hobby plan, you should be on the pro plan
ok I got it, for now It not reach max capacity yet
if you're still getting settled the hobby plan is fine for now, but running a project with clients is not a hobby use case
just letting you know before railway themselves lets you know
Ok, I will be plan for it
yeah those numbers don't look like what you'd expect from a hobby project tbh
either way, let me know if you continue to see errors
yes bro