R
Railway5mo ago
Realify

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)
No description
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
Jump to solution
54 Replies
Percy
Percy5mo ago
Project ID: 2b1f40b8-2aba-4935-bc8e-622767525bfa
Brody
Brody5mo ago
so what kind of app is this?
Realify
Realify5mo ago
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?
Brody
Brody5mo ago
that's the entire projects cost, it combines all resources used the everything in the project where is the front-end hosted?
Realify
Realify5mo ago
Vercel free tier
Brody
Brody5mo ago
do you have a database?
Realify
Realify5mo ago
Yes, mongodb, but its connected directly in express code Allowed access from anywhere
Brody
Brody5mo ago
hosted on atlas?
Realify
Realify5mo ago
Mongodb atlas yes
Brody
Brody5mo ago
what's your start command?
Realify
Realify5mo ago
For express? Npm start
Brody
Brody5mo ago
what's your start script
Realify
Realify5mo ago
Lemme check rq node ./bin/www
Brody
Brody5mo ago
interesting
Realify
Realify5mo ago
I use one of those templates for express yea
Brody
Brody5mo ago
well nothing alarming is standing out to me
Realify
Realify5mo ago
So you reckon that the RAM thing shouldn’t be at constant 300mb?
Brody
Brody5mo ago
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
Realify
Realify5mo ago
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?
Brody
Brody5mo ago
300 is kinda high for express, but I don't know what your code quality is like correct
Realify
Realify5mo ago
May I ask what causes memory usage? For vcpu I believe it might be api calls?
Brody
Brody5mo ago
sorry that's kinda out of the scope of these help threads
Realify
Realify5mo ago
I see, thanks What’s the normal rate In your opinion
Brody
Brody5mo ago
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
Realify
Realify5mo ago
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
Brody
Brody5mo ago
you can ask but i dont have an answer as im not a js dev 😆
Realify
Realify5mo ago
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
Brody
Brody5mo ago
I don't think I know anyone who could give you the magic answer that would decrease your memory
Realify
Realify5mo ago
Alright no worries thanks again i got one last question though @Brody
Realify
Realify5mo ago
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
Brody
Brody5mo ago
not a bundle, but the pro plan doesn't come with any included usage
Realify
Realify5mo ago
Ah okay. So what does the 32gb ram thingy give you? Is it just faster connection?
No description
Brody
Brody5mo ago
nope, it means your service can use up to 32gb of ram if needed
Realify
Realify5mo ago
Ohh okok icic Thanks. This cleared things up So the additional ram usage will cost the same as the 5 dollar usage yea?
Brody
Brody5mo ago
all resource costs are billed the same, so yeah but remember you don't get any included usage on the pro plan
Realify
Realify5mo ago
But you do get 5 bucks on hobby right? This is not a first time only but every month renewed included udage?
Brody
Brody5mo ago
yes every month
Realify
Realify5mo ago
Ok yeah that makes sense. Thank you very much man.
Brody
Brody5mo ago
no problem!
Realify
Realify5mo ago
@Brody hey sorry for asking again, but I played around the railway app and found something weird
Realify
Realify5mo ago
No description
Realify
Realify5mo ago
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
Brody
Brody5mo ago
that's the entire projects usage
Realify
Realify5mo ago
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
Brody
Brody5mo ago
your latest screenshot is a singular service yes that's the usage of that one project and everything in it
Realify
Realify5mo ago
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
Brody
Brody5mo ago
no nothing to do with users, a service is what makes up a project
Realify
Realify5mo ago
Okay thanks @Brody don’t really wanna ask for help, but I resolved the problem, was thinking I tell u why for future reference
Realify
Realify5mo ago
No description
Solution
Realify
Realify5mo ago
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
Realify
Realify5mo ago
Thank you for your patience man, hope this helps whoever you help in the future :salute:
Brody
Brody5mo ago
that would do it, it's the total project usage so a mongo database would be included in that project memory graph
Realify
Realify5mo ago
Yeah makes sense now. Thanks