Ate 27 Cents in one day - Discussion

a year 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

a year ago

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


a year ago

This is what the observability page looks like for today

1365143986574200800


a year ago

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


a year ago

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

1365145518946128000


a year 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.


a year ago

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


a year ago

Yeah, mongo is pretty popular


a year ago

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


a year ago

Prob PostgreSQL, MySQL and Mongo


a year ago

Seems to be using 250 and rising, consistently

1365146582005190700


a year ago

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


a year ago

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


a year ago

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


a year 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


a year ago

I always recommend postgresql if the user wants lower costs


a year ago

Too late for that 😂


a year ago

I mean, that's mongodbs fault


a year ago

I suppose ¯_(ツ)_/¯


a year ago

250mb is a lot


a year ago

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


a year ago

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

1365277799258001400


a year ago

7 cents of ram and 11 cents of cpu


a year ago

thats from your screnshot


a year ago

oh I am fairly blind aren’t I


a year ago

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


a year ago

here's the latest today

1365278246123344000


a year ago

i'll check


a year ago

I am not


a year ago

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


a year ago

yeah definitely give that a try


a year ago

mongo seems to run better on metal cpus


a year ago

Is all of this amd64?


a year ago

yep


a year ago

Why not arm?


a year ago

That would be dirt cheap


a year ago

idk ask railway


a year ago

lol


a year ago

🚂


a year ago

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

1365279040226852900


a year 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


a year ago

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

1365279377411014700


a year ago

damn


a year ago

I’m using 0 now


a year ago

and a fraction of the RAM too


a year ago

the memory will creep back up as its used


a year ago

nvm still most of the RAM as before


a year ago

yeah


a year 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

a year ago

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


a year ago

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


rdb
PRO

a year ago

As long as you store less than 500mb iirc


a year ago

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


a year ago

uh oh

1365280650159980500


a year ago

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


a year ago

thats strange


a year ago

nevermind we vibin

1365280782423167000


a year ago

is your app using the db a lot?


a year ago

bipolar db


a year ago

nope


rdb
PRO

a year ago

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


a year ago

yeah!


a year ago

i regularly do that now


rdb
PRO

a year ago

Railway Pro plan gives you auto backups


rdb
PRO

a year ago

It's p fire


a year ago

railway pro is also


a year ago

$20/m


rdb
PRO

a year ago

1365281111890198500


a year ago

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


a year ago

but i'm not paying just for the features


a year ago

i fear


rdb
PRO

a year ago

That's down from 110 last month


a year ago

what are you hosting


rdb
PRO

a year ago

Few bots and a site


a year ago

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


rdb
PRO

a year ago

No


rdb
PRO

a year ago

0 issues


a year ago

and that costs you $110/m?


rdb
PRO

a year ago

24/7 uptime too


rdb
PRO

a year ago

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


a year ago

what the heck


a year ago

that's a ton of money


rdb
PRO

a year ago

Big bot in a big server


rdb
PRO

a year ago

Lots and lots of resources


a year ago

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


a year ago

and host all of that


rdb
PRO

a year ago

Too much effort railway ux is better


rdb
PRO

a year ago

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


rdb
PRO

a year ago

But my bots cost a lot because they are high usage


rdb
PRO

a year ago

And also maybe not the most efficient


rdb
PRO

a year ago

💀💀


a year ago

meanwhile I can't even deploy a template

1365281873529667600


a year ago

due to


a year ago

"unknown error"


rdb
PRO

a year ago

What template are you trying to deploy


rdb
PRO

a year ago

I always deploy from GitHub


a year ago

tailscale subnet router


a year ago

why 😭


a year ago

:(


a year ago

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


a year ago

unknown error is weird tho


a year ago

but maybe worth a separate thread if it persists


a year ago

deployed that template now and it seems fine for me


maddsua
HOBBY

a year ago

Real


a year ago

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


a year ago

Ah well


a year ago

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


a year ago

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


a year ago

Yep I'm not upset


a year ago

!s


Status changed to Solved brody 11 months ago


Loading...