Ate 27 Cents in one day - Discussion
samgordon
PROOP

10 months ago

Not a complaint or a problem, just a discussion.

If we take a look in the image here, I'm being charged for 728GB minutely GB of RAM? What does this mean? What is this a measure of? Why is this number so incredibly high? As well as CPU usage? My graphs don't look drastic whatsoever…

Solved

109 Replies

samgordon
PROOP

10 months ago

322ea2ee-d764-421d-9d11-77dde0980f62


samgordon
PROOP

10 months ago

This is what the observability page looks like for today

1365143986574200800


samgordon
PROOP

10 months ago

322ea2ee-d764-421d-9d11-77dde0980f62


samgordon
PROOP

10 months ago

It looks like mongodb is taking a giant chunk of this?

1365145518946128000


medim
MODERATOR

10 months ago

RAM is probably the most expensiveish resource on Railway (and most platforms), your application seems to use quite a bit -between 500mb and 1gb (specially mongo)- which is billed by the minute.


samgordon
PROOP

10 months ago

My stupid dependencies… is Mongo not one of your most popular databases? Is this really just hope much it uses?


medim
MODERATOR

10 months ago

Yeah, mongo is pretty popular


samgordon
PROOP

10 months ago

So nobody can sustain a mongo database under the $5 plan, lol?


medim
MODERATOR

10 months ago

Prob PostgreSQL, MySQL and Mongo


samgordon
PROOP

10 months ago

Seems to be using 250 and rising, consistently

1365146582005190700


medim
MODERATOR

10 months ago

You can enable serverless to scale it down to zero and then scale back up based on traffic


medim
MODERATOR

10 months ago

But yeah, mongo is know for being very mem intensive, together with mysql


samgordon
PROOP

10 months ago

I don't really see that being feasable with the amount of time a coldstart would take


samgordon
PROOP

10 months ago

Feels weird that nobody can host a very popular database on one of the two plans, especially because it's like, the entire point of this system


medim
MODERATOR

10 months ago

I always recommend postgresql if the user wants lower costs


samgordon
PROOP

10 months ago

Too late for that 😂


medim
MODERATOR

10 months ago

I mean, that's mongodbs fault


samgordon
PROOP

10 months ago

I suppose ¯_(ツ)_/¯


samgordon
PROOP

10 months ago

250mb is a lot


samgordon
PROOP

10 months ago

MongoDB took ~20 cents in one day, * 30 meaning it would be $6 for just one database


erisa
HOBBY

10 months ago

@Loudbook this is what i mean (from <#727689277219012669>)

1365277799258001400


erisa
HOBBY

10 months ago

7 cents of ram and 11 cents of cpu


erisa
HOBBY

10 months ago

thats from your screnshot


samgordon
PROOP

10 months ago

oh I am fairly blind aren’t I


erisa
HOBBY

10 months ago

do you run it in a metal region by any chance? when i moved mine to metal the cpu costs went wayyy down


samgordon
PROOP

10 months ago

here's the latest today

1365278246123344000


samgordon
PROOP

10 months ago

i'll check


samgordon
PROOP

10 months ago

I am not


samgordon
PROOP

10 months ago

I’m going to migrate to a closer data center that’s also on metal


erisa
HOBBY

10 months ago

yeah definitely give that a try


erisa
HOBBY

10 months ago

mongo seems to run better on metal cpus


samgordon
PROOP

10 months ago

Is all of this amd64?


erisa
HOBBY

10 months ago

yep


samgordon
PROOP

10 months ago

Why not arm?


samgordon
PROOP

10 months ago

That would be dirt cheap


erisa
HOBBY

10 months ago

idk ask railway


erisa
HOBBY

10 months ago

lol


samgordon
PROOP

10 months ago

🚂


erisa
HOBBY

10 months ago

but anyway you can see here on your observability graph, thats an insane amount of cpu for a small db

1365279040226852900


erisa
HOBBY

10 months ago

mine did nonsense like this too before i switched it to metal, i couldnt tell you why it behaved that way but metal cpu good


erisa
HOBBY

10 months ago

it now uses so little cpu it barely even registers on the graphs

1365279377411014700


samgordon
PROOP

10 months ago

damn


samgordon
PROOP

10 months ago

I’m using 0 now


samgordon
PROOP

10 months ago

and a fraction of the RAM too


erisa
HOBBY

10 months ago

the memory will creep back up as its used


samgordon
PROOP

10 months ago

nvm still most of the RAM as before


samgordon
PROOP

10 months ago

yeah


erisa
HOBBY

10 months ago

i added --wiredTigerEngineConfigString="cache_size=50M" to mine which stopped it from going above 300 randomly, but it still hovers around 300 and theres not really anything you can do about that


rdb
PRO

10 months ago

You can use a free Mongo cluster if you don't host it in railway


samgordon
PROOP

10 months ago

Well yeah, but I don't want every environment connecting to the same one


rdb
PRO

10 months ago

As long as you store less than 500mb iirc


erisa
HOBBY

10 months ago

i switched to using one on railway when mongo killed my free cluster randomly 🥲


samgordon
PROOP

10 months ago

uh oh

1365280650159980500


erisa
HOBBY

10 months ago

had a good run tho, that cluster was alive for years


erisa
HOBBY

10 months ago

thats strange


samgordon
PROOP

10 months ago

nevermind we vibin

1365280782423167000


erisa
HOBBY

10 months ago

is your app using the db a lot?


samgordon
PROOP

10 months ago

bipolar db


samgordon
PROOP

10 months ago

nope


rdb
PRO

10 months ago

Always use a Mongo dump every time life feels like it's going a bit too smoothly


erisa
HOBBY

10 months ago

yeah!


erisa
HOBBY

10 months ago

i regularly do that now


rdb
PRO

10 months ago

Railway Pro plan gives you auto backups


rdb
PRO

10 months ago

It's p fire


samgordon
PROOP

10 months ago

railway pro is also


samgordon
PROOP

10 months ago

$20/m


rdb
PRO

10 months ago

1365281111890198500


erisa
HOBBY

10 months ago

i'll keep that in mind if my usage ever grows to $20 naturally


erisa
HOBBY

10 months ago

but i'm not paying just for the features


samgordon
PROOP

10 months ago

i fear


rdb
PRO

10 months ago

That's down from 110 last month


samgordon
PROOP

10 months ago

what are you hosting


rdb
PRO

10 months ago

Few bots and a site


samgordon
PROOP

10 months ago

do you not get constant random hangs, errors, and invulnerable volumes


rdb
PRO

10 months ago

No


rdb
PRO

10 months ago

0 issues


samgordon
PROOP

10 months ago

and that costs you $110/m?


rdb
PRO

10 months ago

24/7 uptime too


rdb
PRO

10 months ago

No there was a specific bot that was 60 alone that I no longer host


samgordon
PROOP

10 months ago

what the heck


samgordon
PROOP

10 months ago

that's a ton of money


rdb
PRO

10 months ago

Big bot in a big server


rdb
PRO

10 months ago

Lots and lots of resources


samgordon
PROOP

10 months ago

you could get a full VPS with a decent CPU for $50/m


samgordon
PROOP

10 months ago

and host all of that


rdb
PRO

10 months ago

Too much effort railway ux is better


rdb
PRO

10 months ago

Railway makes life so easy that it's worth paying the premium


rdb
PRO

10 months ago

But my bots cost a lot because they are high usage


rdb
PRO

10 months ago

And also maybe not the most efficient


rdb
PRO

10 months ago

💀💀


samgordon
PROOP

10 months ago

meanwhile I can't even deploy a template

1365281873529667600


samgordon
PROOP

10 months ago

due to


samgordon
PROOP

10 months ago

"unknown error"


rdb
PRO

10 months ago

What template are you trying to deploy


rdb
PRO

10 months ago

I always deploy from GitHub


samgordon
PROOP

10 months ago

tailscale subnet router


samgordon
PROOP

10 months ago

why 😭


samgordon
PROOP

10 months ago

:(


erisa
HOBBY

10 months ago

idk why they sobbed but looking at my bio may give a hint of why i sobbed


erisa
HOBBY

10 months ago

unknown error is weird tho


erisa
HOBBY

10 months ago

but maybe worth a separate thread if it persists


erisa
HOBBY

10 months ago

deployed that template now and it seems fine for me


maddsua
HOBBY

10 months ago

Real


brody
EMPLOYEE

10 months ago

you've likely hit the service count limit on the trial plan


samgordon
PROOP

10 months ago

Ah well


samgordon
PROOP

10 months ago

If I can get my mongodb usage down I’ll consider buying hobby


brody
EMPLOYEE

10 months ago

as a few people have said, that's unfortunately just the reality, mongo uses a lot of memory in comparison to Postgres


samgordon
PROOP

10 months ago

Yep I'm not upset


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...