a month ago
Hey,
I am currently on the hobby plan, including 8gb of ram, which is more than enough for my usage, and my services are all under 500mb or ram constantly, but I am still billed 3$+ in addition to the 5$ hobby plan, and I don't understand why.
It could be just me not doing the maths the right way but 20,378,076 minutely MB of ram is 471.71 average MB of ram according to my calculations so it is largely under the 8gb of the hobby plan.
My project id: 9ddc84e8-a659-4f68-a090-a91efa1cddd0
36 Replies
a month ago
That’s $4.61 worth of RAM if my calculations are correct.
a month ago
0.00000386*60*20378076/1024
a month ago
There’s also other resources factored into the bill as well (I’m sure you’re aware).
a month ago
based on that transcript, you're using below 5 usd a month, meaning you only paid for the hobby plan cost
a month ago
you seemed to have credits so you only got charged 1 usd
a month ago
This is two months worth of resources…
a month ago
Nov 26 - Dec 26 and Dec 26 - Jan 26
it may be normal but i was just concerned that the ram billing is so high compared to other billings:

a month ago
Estimated may not be accurate btw.
a month ago
nah thats just how it renders on the stripe invoice, cause it charges you for the month's usage and the next month's plan together
a month ago
Ah, I see.
a month ago
Mb
a month ago
you said you were being charged 3 usd in addition to hobby plan cost, but where are you seeing that?
a month ago
or do you have other projects too
oh yeah sorry this was not correct, i just took the numbers on the dashboard for this current period but it's not what I will be billed on top of the hobby plan. As I showed, last time I was charged 1$+ on top of the hobby plan. It is really not that much and I don't care about 1$ but i just find it strange that my mem billing is like 50x my cpu billing
a month ago
oh alright
As I showed, last time I was charged 1$+ on top of the hobby plan
well to clear things up - you're charged at least 5 usd a month regardless of anything, that 1 usd wasn't ontop of the hobby plan charge, that was the hobby plan charge, but you had credits so it discounted the charge for you from 5 usd to 1 usdi just find it strange that my mem billing is like 50x my cpu billing
the reason this is the case is because memory is pretty much always used while CPU is only used when your app needs to perform actions, because of this your minitely gb memory will usually be much higher than your minutely CPU usageknowing that I just use ≈700mb or ram constantly
700mb of constant memory usage is 7usd a month, so with that memory usage, assuming your other usages are negligible, you'd be charged ~7usd a month, but that isn't ontop of hobby plan - that includes hobby plan
oh ok thank's for the clarification, but there is still something that is unclear,
the reason this is the case is because memory is pretty much always used while CPU is only used when your app needs to perform actions, because of this your minitely gb memory will usually be much higher than your minutely CPU usage
then how do I need to understand the 8gb of included memory usage of the hobby plan?
a month ago
the 8gb is just the maximum amount of memory you're allowed to use per deployment, but you're only charged for what you actually use
a month ago
It’s $10/GB/month.
a month ago
I don't work for Railway, so I can't speak for them as to why they price things the way they do. Although my guess would be that it's because their pricing is purely usage-based, since you're not paying for idle memory the cost of memory doesn't need to be hyper optimised for Railway's service to remain affordable. I'd also wager that part of it is just convenience premium, many believe they make up the cost through convenience (which I'd agree with personally)
but for the rest, that makes more sense, but i'm still a little disappointed that railway cost more than just renting a vps with the same specs
a month ago
basically meaning the cost is fair because of how easy Railway is to use and how much it speeds up hosting
a month ago
If you don't mind managing provisioning around load and expect to use a lot of resources, then a VPS is cheaper. Meaning to say, a VPS is excellent for static, predictable traffic and high base resource consumption
If your app has traffic fluctuations or dynamic usage, then Railway is better because provisioning is instantaneous, and your billing is optimized around your usage fluctuations so you don't pay for idle capacity - you only pay for what you actually use
ok i see, thank you for all your explanations! Everything makes more sense now, and i'll admit i did not read properly how things are billed on railway's plans… but again thank you for your good support!
a month ago
you are very welcome 🙂
Status changed to Solved brody • about 1 month ago

