Questions About RAM Usage and Idle Mode in Hobby Plan
vladbri
HOBBYOP

2 months ago

Hello Railway Support Team,

I built a Telegram bot that consumes on average 130–135 MB of RAM and runs 24/7. It appears that the $5 included in the Hobby plan is not sufficient to cover this usage, even though 130–135 MB of RAM is the baseline minimum for a Telegram bot to operate.

I have a couple of questions:

  1. Is it possible to minimize RAM usage within the Railway container settings?

  2. Is there a way to put the container into an idle or “sleep” mode, so that it conserves resources when inactive, but automatically wakes up when it receives a message or a button is pressed?

Thank you very much for your help.

Solved$10 Bounty

2 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!


uxuz
MODERATOR

2 months ago

Hey, Railway does have a serverless feature, however this would only work if your service isn't sending any outbound traffic for over 10 minutes.

While it is possible to limit how much memory a service can scale up to, it would have had no effect on it, since the minimum limit would be 500MB and the consequence of reaching this limit is terminating your service and restarting it if you have specified it in the settings to do so.

Using 130MB of memory for a month should only result in $1.30 of usage, I suppose you have other services running that also contributes to your usage?


Status changed to Solved uxuz about 2 months ago


Loading...