Is there a way to restart when memory usage hits a certain level?
simulieren
HOBBYOP

7 months ago

After a couple days the memory usage gets too high for no good reason and I want to restart the process automatically. Is there a way to do that? Would the CRON setting work for a web server in this situation?

Seems like this drives up the cost of my app by 100% or more …

Solved$10 Bounty

7 Replies

simulieren
HOBBYOP

7 months ago

24fd6389-27ac-4ca6-b6ba-949ed0f01e71


clashing
HOBBY

7 months ago

https://station.railway.com/questions/restart-a-service-af57f9e3

Does this help you anyhow? You can schedule the re-deployment of the services after a stipulated interval of time.


simulieren
HOBBYOP

7 months ago

Thanks! 🙏


clashing
HOBBY

7 months ago

Your welcome 👏
Do mark it as the solution, if that helped


clashing
HOBBY

7 months ago

simulieren, if you can, please mark my initial response to this query as the solution for your query (via the help-station) v emoji


7 months ago

Railway's CRON job will not restart your services, if you have a long running application such as a web server, absolutely nothing will happen every time the CRON time comes around since your application would already be running.


clashing
HOBBY

7 months ago

simulieren, do mark my intial query as the solution for this post, as it helped you to resolve the issue!

Brody, if you can do the needful


Status changed to Solved brody 7 months ago


Loading...