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:Jump to 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.
18 Replies
Project ID:
9d638488-9ad8-49d8-8cce-5ea57ac4fc53
9d638488-9ad8-49d8-8cce-5ea57ac4fc53
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?
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.
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?
I never used a cron job in railway
I think the docs can help you tho https://docs.railway.app/reference/cron-jobs
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.
railways cron job can not restart running containers
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?
could have sworn i sent you this before - https://railway.app/template/fwH-l3
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
only for github based templates, there will be a little button in the top left corner of the project canvas
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
no update button
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
I think this is the updated template. When I click check for updates, it shows that I'm on the latest version.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View