questions regarding paid railway
Hey, does anyone have any experience deploying a backend with paid service?
I was just wondering if the constant 300MB usage per hour is normal as shown in the pic (even though the past 6 hours there has been no api calls as u can see in vcpu)
Solution:Jump to solution
It’s because yesterday I tried to set up a mongodb server in the same project, but ended up not using it because i wanted to use atlas instead. Turns out I didnt really “delete” it, was still active all along, and I had to do the “destructive changes” to confirm delete it
54 Replies
Project ID:
2b1f40b8-2aba-4935-bc8e-622767525bfa
so what kind of app is this?
2b1f40b8-2aba-4935-bc8e-622767525bfa
Basically just a crud app similar to ratemyprofessors.com, react frontend and express backend. This is just the backend
I figured since the app is constantly running and never put to sleep maybe that’s the reason?
that's the entire projects cost, it combines all resources used the everything in the project
where is the front-end hosted?
Vercel free tier
do you have a database?
Yes, mongodb, but its connected directly in express code
Allowed access from anywhere
hosted on atlas?
Mongodb atlas yes
what's your start command?
For express?
Npm start
what's your start script
Lemme check rq
node ./bin/www
interesting
I use one of those templates for express yea
well nothing alarming is standing out to me
So you reckon that the RAM thing shouldn’t be at constant 300mb?
I reckon it is what it is
from my questions I'm not seeing anything that stands out to me that could caused high memory
Is 300mb considered high memory or is it normal
Also do you know if that’s like 300mb per hour or
And regarding the extra resources, I saw that it’s like 10 bucks per gb while for 5bucks hobby plan u get 8gb of ram, does that mean it’s better to not overuse and upgrade instead if I end up exceeding resources?
300 is kinda high for express, but I don't know what your code quality is like
correct
May I ask what causes memory usage?
For vcpu I believe it might be api calls?
sorry that's kinda out of the scope of these help threads
I see, thanks
What’s the normal rate
In your opinion
the hobby plan comes with 5$ in credits, this service will use less than that in resources assuming it stays at this memory usage
maybe 70-120
Estimated cost states to be at 5 bucks though
I see. What parts of express app do you reckon I should check if that’s possible to ask
you can ask but i dont have an answer as im not a js dev 😆
Ah okay. Thanks
Don’t know if this is appropriate, but is it possible if you can help me refer to a js helper to help? I can send over my code if they need it, it’s a very simple express app with around 7 component files each less than 50 lines, so rly not sure what has happened as I’m a new js learner too haha
I don't think I know anyone who could give you the magic answer that would decrease your memory
Alright no worries thanks again
i got one last question though
@Brody
Yeah I saw that, but like is the additional resources cost around the same or way much more expensive than buying the monthly “bundle” of 5 or 20 bucks
not a bundle, but the pro plan doesn't come with any included usage
Ah okay. So what does the 32gb ram thingy give you? Is it just faster connection?
nope, it means your service can use up to 32gb of ram if needed
Ohh okok icic
Thanks. This cleared things up
So the additional ram usage will cost the same as the 5 dollar usage yea?
all resource costs are billed the same, so yeah
but remember you don't get any included usage on the pro plan
But you do get 5 bucks on hobby right? This is not a first time only but every month renewed included udage?
yes every month
Ok yeah that makes sense. Thank you very much man.
no problem!
@Brody hey sorry for asking again, but I played around the railway app and found something weird
In this tab it seems that my memory usage for this project that I’m refering to is… that
Which is below 100mb
But why does this say 300mb
Does that mean it shld be normal cuz I saw other posts regarding high memory refers to this page instead of ram
that's the entire projects usage
Hmm, then what does my recent screenshot memory refer to
By the entire project you mean one single project and not all projects in my account right
your latest screenshot is a singular service
yes that's the usage of that one project and everything in it
Ah okay. What does a singular service mean, what makes it different from the entire project cost? Is there anywhere I can read about this?
Does singular service mean a single user using my service or
no nothing to do with users, a service is what makes up a project
Okay thanks
@Brody don’t really wanna ask for help, but I resolved the problem, was thinking I tell u why for future reference
Solution
It’s because yesterday I tried to set up a mongodb server in the same project, but ended up not using it because i wanted to use atlas instead. Turns out I didnt really “delete” it, was still active all along, and I had to do the “destructive changes” to confirm delete it
Thank you for your patience man, hope this helps whoever you help in the future
:salute:
that would do it, it's the total project usage so a mongo database would be included in that project memory graph
Yeah makes sense now. Thanks