R
Railway9mo ago
Pipenho

Why is costing me so much the memory usage

I have a environment that contains a mysql db, sailsjs backend and react front. All this is not even used yet and is costing me 18 usd does anyone know why is that happen? Proyect-id:992cf34a-815d-4283-8440-0049e897a74e
45 Replies
Percy
Percy9mo ago
Project ID: 992cf34a-815d-4283-8440-0049e897a74e
Brody
Brody9mo ago
how much memory is the react service using?
Pipenho
Pipenho9mo ago
Local storage you mean?
Brody
Brody9mo ago
ram
Pipenho
Pipenho9mo ago
Uh i dont know But is a low app
Brody
Brody9mo ago
please check
Pipenho
Pipenho9mo ago
On it What part of profile should i look ?
Brody
Brody9mo ago
i dont know what you mean by profile, please tell me how much memory / ram your service on railway uses, look into the metrics tab
Pipenho
Pipenho9mo ago
thats what u want?
No description
Brody
Brody9mo ago
that is project metrics, please look into the service metrics for the react app
Pipenho
Pipenho9mo ago
No description
Brody
Brody9mo ago
looks fine to me, show me mysql now please
Pipenho
Pipenho9mo ago
No description
Pipenho
Pipenho9mo ago
thats backend
No description
Brody
Brody9mo ago
how long ago have you deployed all these services?
Pipenho
Pipenho9mo ago
mmmm a month max 2
Brody
Brody9mo ago
and you only have 3 services total?
Pipenho
Pipenho9mo ago
yep
Brody
Brody9mo ago
do you have any environments in the project?
Pipenho
Pipenho9mo ago
yes but im not using it
Brody
Brody9mo ago
that doesn’t necessarily mean there arent services running in those environments
Pipenho
Pipenho9mo ago
i dont have nothing on it
Brody
Brody9mo ago
lets see?
Pipenho
Pipenho9mo ago
No description
Brody
Brody9mo ago
you still got mysql running
Pipenho
Pipenho9mo ago
shuuuuu i dont know that
Brody
Brody9mo ago
green check mark
Pipenho
Pipenho9mo ago
i didint know that* how can i delete the others environments? if i just remove the mysql instances it will be more lower price? sorry my english is very bad
Brody
Brody9mo ago
removing unused deployments would definitely lower the bill at the end of your cycle
Pipenho
Pipenho9mo ago
but is costing money the environments or is the mysql instance?
Brody
Brody9mo ago
the mysql deployment is what costs money
Pipenho
Pipenho9mo ago
any other advise to low the price?
Brody
Brody9mo ago
use something other than mysql, mysql is a known memory hog perhaps postgres, or even sqlite + a volume for near zero extra database running costs
Pipenho
Pipenho9mo ago
dude youre the light when do you recommend use redis?
Brody
Brody9mo ago
when you need it
Pipenho
Pipenho9mo ago
but redis in your service how expensive is?
Brody
Brody9mo ago
it all depends on what you do with it and how much resources it uses, theres no fixed pricing
Pipenho
Pipenho9mo ago
is recomended use app sleeping?
Brody
Brody9mo ago
thats completely up to your discretion
Pipenho
Pipenho9mo ago
well thanks man you help me a lot
Brody
Brody9mo ago
happy to help
coltonidle
coltonidle9mo ago
just lurking here. curious about "perhaps postgres, or even sqlite + a volume for near zero extra database" why do you recommend sqlite + a volume (hard drive space) vs postgres?
pauldps
pauldps9mo ago
Fully recommend sqlite on a volume. But I'm not running anything big in my case my API is the only thing that needs to connect directly to the DB (I have a frontend + API + other things combo). Sqlite on a volume is unreachable via network. It works for me
Brody
Brody9mo ago
yep sqlite has much less resource overhead compared to postgres
coltonidle
coltonidle9mo ago
interesting. i think im just going to actually have to build something in railway that uses a db + storage to see what this is really about. im a backend/railway noob so i just found this thread interesting. thanks for entertaining the question
Want results from more Discord servers?
Add your server