Unexpected high memory billing
konixy
HOBBYOP

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

Solved$10 Bounty

36 Replies

That’s $4.61 worth of RAM if my calculations are correct.


0.00000386*60*20378076/1024


There’s also other resources factored into the bill as well (I’m sure you’re aware).


konixy
HOBBYOP

2 months ago

yeah but the other ressources are not signigicant compared to the ram


konixy
HOBBYOP

2 months ago

1461017967448949000


2 months ago

based on that transcript, you're using below 5 usd a month, meaning you only paid for the hobby plan cost


2 months ago

you seemed to have credits so you only got charged 1 usd


This is two months worth of resources…


Nov 26 - Dec 26 and Dec 26 - Jan 26


konixy
HOBBYOP

2 months ago

yeah it's maybe the free trial


konixy
HOBBYOP

2 months ago

it may be normal but i was just concerned that the ram billing is so high compared to other billings:

1461018848156455000


Estimated may not be accurate btw.


konixy
HOBBYOP

2 months ago

and here are my usages

1461018912014602200


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




2 months ago

you said you were being charged 3 usd in addition to hobby plan cost, but where are you seeing that?


2 months ago

or do you have other projects too


konixy
HOBBYOP

2 months ago

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


konixy
HOBBYOP

2 months ago

knowing that I just use ≈700mb or ram constantly


konixy
HOBBYOP

2 months ago

and last month it was around 300mb if i remember well


2 months 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 usd

i 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 usage

knowing 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


konixy
HOBBYOP

2 months ago

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?


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


konixy
HOBBYOP

2 months ago

oh ok i see, but why the hell the ram price is so damn high then?


konixy
HOBBYOP

2 months ago

4.72$ for an average 471.71mb seems pretty high


konixy
HOBBYOP

2 months ago

compared to other services


It’s $10/GB/month.


2 months 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)


konixy
HOBBYOP

2 months ago

sorry i'm not native english, what do you mean by convenience premium?


konixy
HOBBYOP

2 months ago

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


2 months ago

basically meaning the cost is fair because of how easy Railway is to use and how much it speeds up hosting


konixy
HOBBYOP

2 months ago

oh ok yeah, surely the dx on railway is nowhere near using a vps


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


konixy
HOBBYOP

2 months ago

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!


2 months ago

you are very welcome 🙂


Status changed to Solved brody 2 months ago


Loading...