R
Railway4mo 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
Percy4mo ago
Project ID: 992cf34a-815d-4283-8440-0049e897a74e
Brody
Brody4mo ago
how much memory is the react service using?
Pipenho
Pipenho4mo ago
Local storage you mean?
Brody
Brody4mo ago
ram
Pipenho
Pipenho4mo ago
Uh i dont know But is a low app
Brody
Brody4mo ago
please check
Pipenho
Pipenho4mo ago
On it What part of profile should i look ?
Brody
Brody4mo 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
Pipenho4mo ago
thats what u want?
No description
Brody
Brody4mo ago
that is project metrics, please look into the service metrics for the react app
Pipenho
Pipenho4mo ago
No description
Brody
Brody4mo ago
looks fine to me, show me mysql now please
Pipenho
Pipenho4mo ago
No description
Pipenho
Pipenho4mo ago
thats backend
No description
Brody
Brody4mo ago
how long ago have you deployed all these services?
Pipenho
Pipenho4mo ago
mmmm a month max 2
Brody
Brody4mo ago
and you only have 3 services total?
Pipenho
Pipenho4mo ago
yep
Brody
Brody4mo ago
do you have any environments in the project?
Pipenho
Pipenho4mo ago
yes but im not using it
Brody
Brody4mo ago
that doesn’t necessarily mean there arent services running in those environments
Pipenho
Pipenho4mo ago
i dont have nothing on it
Brody
Brody4mo ago
lets see?
Pipenho
Pipenho4mo ago
No description
Brody
Brody4mo ago
you still got mysql running
Pipenho
Pipenho4mo ago
shuuuuu i dont know that
Brody
Brody4mo ago
green check mark
Pipenho
Pipenho4mo 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
Brody4mo ago
removing unused deployments would definitely lower the bill at the end of your cycle
Pipenho
Pipenho4mo ago
but is costing money the environments or is the mysql instance?
Brody
Brody4mo ago
the mysql deployment is what costs money
Pipenho
Pipenho4mo ago
any other advise to low the price?
Brody
Brody4mo 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
Pipenho4mo ago
dude youre the light when do you recommend use redis?
Brody
Brody4mo ago
when you need it
Pipenho
Pipenho4mo ago
but redis in your service how expensive is?
Brody
Brody4mo ago
it all depends on what you do with it and how much resources it uses, theres no fixed pricing
Pipenho
Pipenho4mo ago
is recomended use app sleeping?
Brody
Brody4mo ago
thats completely up to your discretion
Pipenho
Pipenho4mo ago
well thanks man you help me a lot
Brody
Brody4mo ago
happy to help
coltonidle
coltonidle4mo 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
pauldps4mo 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
Brody4mo ago
yep sqlite has much less resource overhead compared to postgres
coltonidle
coltonidle4mo 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