Restart deployment every 24 hours
Every so often the deployment starts to use up more and more RAM (see screenshot) and I'm forced to restart in order to get the project working again.
Is there any way I can dynamically restart the deployment every 24 hours?
15 Replies
Project ID:
083a4f6c-f7ee-4dd7-90d5-1b8d3c5805b5
083a4f6c-f7ee-4dd7-90d5-1b8d3c5805b5
dynamically, you would have to roll your own solution that would poll the metrics and call the deployment restart mutation whenever a self defined threshold is reached.
every 24 hours, easy, use this template https://railway.app/template/fwH-l3
Not sure why the RAM spins up so much tho'.
For more context: I'm running a project where we take screenshots using playwright. All is well until the RAM gets high so I'm forced to restart 🤔
sounds like a memory leak to me
hmm...
no idea how I can figure that out 😅
profiling
for node u have Node Clinic, Node Mem watch
(assuming ur running this in node)
isn't playwrite for python
i see its py too
cool
if youre on python then i would look at the library tracemalloc
it helps trace mem blocks
No, it’s on node
ah ok ^