Automatically restarting server

One of the main differences between Heroku and Render is that heroku forces dyno restarts every 24 hours. Render doesn’t.

Which is nice, but if we have an app that could benefit from that or something similar, is there a way to gracefully reboot services periodically? Would the best bet be to set up another service to send the kill command via a Job periodically?

If you have auto-deploys enabled so your service always runs from the HEAD of your branch, you could use this https://api-docs.render.com/reference/create-deploy and call it from Cron here on render.com or from scheduled GitHub Action workflow for example.

1 Like