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