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