Occasionally, mysql serverless db doesnt wake-up at all (only after redeploy)
eranimore
HOBBYOP

2 months ago

Hi,

Occasionally, my DB (MySQL) serverless deployment doesnt wake up at all.

Redeploying or Re-setting serverless will solve the issue (until next time...)

This happens randomly - sometimes twice in 24 hours, sometimes only after 10 days...

My deployments have been running for a few months without any changes changes.

I would appreciate any advise.

Thanks.

Solved

8 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Railway
BOT

2 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


brody
EMPLOYEE

2 months ago

Hello,

We are tracking this issue but we do have it as a listed caveat in our docs that sometimes a redeploy may be needed to wake a service.

https://docs.railway.com/reference/app-sleeping#caveats


Status changed to Awaiting User Response Railway 2 months ago


eranimore
HOBBYOP

2 months ago

I could not see any reference for this on the caveat page.

The service simply stays asleep without any way to wake it up other than redeploy.


Status changed to Awaiting Railway Response Railway 2 months ago


ray-chen
EMPLOYEE

2 months ago

This is the caveat:

Slept services still consume a slot on our infrastructure, enabling Serverless de-prioritizes your workload and in remote cases, may require a rebuild to re-live the service.

Unfortunately there's nothing we can do about this in the short-term


Status changed to Awaiting User Response Railway 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 2 months ago


eranimore
HOBBYOP

a month ago

In the past 24 it became even worse -
Every 3-4 hours the DB-Service goes to sleep and doesn't wake up and doesnt respond.
I need to re-deploy it every time or Change Serverless False/True to make it back respond.

It works only for a couple of hours and then it doesnt wake up again.
Please advise.


Status changed to Awaiting Railway Response Railway about 1 month ago


You're right that every 3-4 hours is way too frequent for a production database. The real issue here is that Serverless and databases don't mix well—databases need persistent connections and are almost always active when your app is running, so you're constantly hitting cold boots and connection timeouts.

Your best bet is to disable Serverless on your MySQL database entirely. If you do need Serverless for some reason and your database is only accessed occasionally, the current workarounds (redeploying or toggling Serverless off and on) are what we have available right now.

That said, the jump in frequency you're seeing is worth investigating. If you can share a few timestamps from recent occurrences, we can dig into whether something specific to your setup is causing this or if it's a broader issue we need to address.


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

a month ago

❌ The ticket Delayed service startup has been marked as canceled.


Railway
BOT

23 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 23 days ago


Loading...