Deployment keeps sleeping

Ive been running on a free Koyeb account for over a month now, but recently the deployment started sleeping and i have to keep redeploying.
I just subscriber to a higher plan but my deployment keeps sleeping. what do i do?

Hi @Allwell_Omojo, free instances are sleeping after 60 minutes of inactivity.

If you want to disable sleeping you need to choose different free instance eNano should work for you if you used to use free instance.

hello @Pawel_Beza so paying for the Pro plan was not necessary to stop the sleeping?

You need to choose an instance type diferent from the free one.

Hello, i have a solution for you:

  1. Create a /health endpoint in your webservice here’s an example snippet
    app.get('/health', (req, res) => res.json({ status: 'ok', uptime: process.uptime() })
    2. After doing that head to https://uptimerobot.com make an account and create a monitor to your websites /health endpoint the default free settings will work fine make sure the time is 5 minutes and the settings are set correctly
    Doing this the website wouldn’t go offline as it would get traffic every 5 minutes fixing your error
    P.S: You are responsible for what happens if you do this because im not sure if koyeb devs would like it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.