Documentation / Auto-sleep and wake-on-connect
Run your server
Minecraft server auto-sleep and wake-on-connect
How Eytak puts an empty Minecraft server to sleep, how long it waits, how it wakes when a player joins, and what to do if the first join fails.
Auto-sleep stops an empty server from using CPU and memory, and wake-on-connect brings it back when the next player connects. Both are on by default. Players keep using the same address; they do not need to know the server was asleep.
On a package, sleeping costs nothing and does not change the price. The period runs the same whether the server is awake or asleep, so sleep neither shortens nor extends it (see billing).
How sleep works
A server sleeps at two depths:
- Sleeping. After the idle delay you set, an empty server is frozen exactly as it was. When a player joins it resumes almost instantly.
- Hibernating. After the server has stayed asleep for a long stretch, it is shut down completely to free the machine. Waking it is a normal boot: a few seconds for a small server, and up to a minute for a large modpack.
Your world is not touched at either depth.
Eytak decides a server is empty from real connections to the server, not only from the player count a plugin reports. A server whose plugin says zero players but which still has someone connected is not put to sleep.
Change the idle delay
- Open your server in the panel and go to the Settings tab.
- Find the auto-sleep card. The Sleep when empty switch turns auto-sleep on or off.
- Set Wait this many empty minutes first. You can choose anything from 1 minute to 1440 minutes (24 hours).
- Click Save.
A short delay saves the most resources but makes the freeze happen sooner after the last player leaves. A long delay keeps the server instantly available between short breaks. If you would rather the server never sleeps, turn Sleep when empty off.
Wake-on-connect
The second switch on the same card is Wake up when a player joins. With it on, anybody who connects to the address brings the server back up.
If you turn it off, only you can start the server again, from the panel. A player who tries to join a sleeping server is told that its owner turned waking off. The panel warns you about this before you save, because it is the one setting that can leave your server unreachable to everyone but you.
What a player sees when the server wakes
- After a freeze: the join works, or lags for a moment and then works.
- After a full shutdown: the first connection can fail while the server boots. The player should wait a few seconds and try again.
- Bedrock players: the server can show as offline for a few seconds after the first attempt. Joining again works once it is up. See connecting to your server for how Java and Bedrock addresses differ.
If your players find that confusing, the connect page that Eytak shows when someone pastes your address into a browser tells them when the server is asleep and that joining will wake it.
See when a server slept
The History tab records when the server slept and when a player's connection woke it. You can also have an alert sent when a server goes to sleep, in the Notifications tab. See notifications.
Troubleshooting
The server will not wake. Check whether Wake up when a player joins is off. If it is, start the server from the panel.
The first join fails, the second works. That is a boot from a full shutdown. It is expected, most noticeably with a large modpack.
The server sleeps while someone is online. Emptiness is judged from real connections, so check that the person is actually connected through the server's address. If you see this and cannot explain it, open a ticket from support.
You want it always on. Turn off Sleep when empty and save.
Frequently asked questions
Is auto-sleep on by default?
Yes. New servers sleep when empty and wake when a player connects. You can turn either behaviour off in the Settings tab.
How long can the idle delay be?
From 1 minute up to 24 hours. You set it per server.
Does sleeping change my price?
On a package, no. A package is one payment for a fixed period, and the period runs the same whether the server is awake or asleep.
Will a player lose progress when the server sleeps?
No. A sleeping server is frozen as it was, and waking from a full shutdown does not touch your world. For extra safety, see backups.
How long does a wake take?
After a freeze it is almost instant. After a full shutdown it is an ordinary boot, which for a large modpack can take up to a minute.