Scaling to zero/sleep for databases

First of all I'm impressed with all of the new stuff added, this is awesome! I have a question about "scaling to zero" feature, so apparently it sleeps when there is no network activity happening, specifically the out of the service. What if this service is a database/long running worker that runs long running jobs, in the case the work takes more than 5 mins before any response and the app sleeps during some processing, so this makes app sleep feature not applicable for databases/workers right? I think we should have the time before sleep configurable so I can make sure that it doesn't sleep in the middle of doing something. Also one more suggestion is to have a configurable endpoint that railway can trigger before sleep and based on it it can cancel the sleep, just an idea.
3 Replies
Percy
Percy12mo ago
Project ID: N/A
B L Â D É
B L Â D É12mo ago
N/A
Brody
Brody12mo ago
if your database does background tasks that create outgoing network traffic like checking for updates, then it wouldn't be possible to sleep them, without first disabling those kinds of background tasks
Want results from more Discord servers?
Add your server