Why is Hasura using so much RAM?

Just got an outrageously high bill caused by our Hasura based server. Is this normal? Why would Hasura be using 16 gigs of RAM? How do we fix this? I was not expecting a 3x increase in our bill this month... something has to be wrong here, this service is hardly even used.
Solution:
yep this is an issue with hasura, that graph is indicative of a memory leak but neither railway, nor the community nor the team would be able to answer the question as to why it's using that much memory, this would be something you need to ask the developers.
Jump to solution
18 Replies
Percy
Percy5mo ago
Project ID: 9d638488-9ad8-49d8-8cce-5ea57ac4fc53
Deani1232
Deani1232OP5mo ago
9d638488-9ad8-49d8-8cce-5ea57ac4fc53
Medim
Medim5mo ago
Tbh that sounds more like an issue with Hasura than Railway Maybe a mem leak? Is it using the graphql engine (saw an issue in gh about it) Does restarting it fix things?
Deani1232
Deani1232OP5mo ago
I will try and restart it. Can we set a memory limit for a specific container? Unsure exactly what you mean by graphql engine. The main point of Hasura is to stick a graphql system above the database layer.
Deani1232
Deani1232OP5mo ago
30 day graph does make me think this is a memory leak. Do you know how to set a cron schedule up to restart the container via Railway?
No description
Medim
Medim5mo ago
I never used a cron job in railway
Medim
Medim5mo ago
I think the docs can help you tho https://docs.railway.app/reference/cron-jobs
Railway Docs
Cron Jobs | Railway Docs
Documentation for Railway
Solution
Brody
Brody5mo ago
yep this is an issue with hasura, that graph is indicative of a memory leak but neither railway, nor the community nor the team would be able to answer the question as to why it's using that much memory, this would be something you need to ask the developers.
Brody
Brody5mo ago
railways cron job can not restart running containers
Deani1232
Deani1232OP5mo ago
I guess I have to build something with the API? Is there a simpler way to set a service to automatically restart after a certain time frame? Maybe with the start command?
Brody
Brody5mo ago
could have sworn i sent you this before - https://railway.app/template/fwH-l3
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Brody
Brody5mo ago
only for github based templates, there will be a little button in the top left corner of the project canvas
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Brody
Brody5mo ago
no update button
Deani1232
Deani1232OP5mo ago
Thank you for this. I’ll set this up. I don’t think I’ve received it before. I am using the template. Thank you guys for the help, wish I noticed this issue before it ended up eating so much money lol
Deani1232
Deani1232OP5mo ago
I think this is the updated template. When I click check for updates, it shows that I'm on the latest version.
No description
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server