2 months ago
Every month I fear what kind of bill I'm going to get from Railway. And where this once was 50-100/mo for my two projects, ever since I got the Pro account it seems like the costs keep balooning.
Firstly, I didn't realize the Pro account auto-increases each service to 32GB CPU, that alone seemed to add to costs this month. I wouldn't have expect that to just happen automatically.
But the heart of the matter is memory. I really don't understand what caused 50% increase month-over-month, and traffic/users/etc is not increasing. I'm thinking about leaving for cheaper pastures, but I wanted to see if we could explore what's going on.
It seems like the primary culprit is the Celery worker in Barbell. But I find it hard to believe it's doing 50% more than the month prior.
How can I get some help here?
Thanks,
Nick
5 Replies
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!
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 2 months ago
2 months ago
Maybe you just need to limit your resources, if the pro plan increased your resources it might be that you services are just using them, even if not needed....
if before upgrading to the PRO it was working fine with less resources just put some limits, usually more you give and more it's used...try adding a 1vcp/1gb limit per service (or whatever you need)
2 months ago
You can also set a hard limit in workspace settings > usage, but note that it'll shut down all deployments once that hard limit is reached.
2 months ago
Thanks ya'll. Open to any other tips for managing costs on a memory-hungry Celery worker instance.
Will give these ideas a try.
Thanks!
2 months ago
for celery use this start command celery -A app worker -l INFO -E --autoscale 4,0 auto scale will clear memory on scale down.
for other services, periodically restart will clear ram usage, app will attempt to use available ram which it should!

