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