Apolo Pulse
The heartbeat of your server. Apolo Pulse watches memory, CPU, the disks and every service around the clock and recovers the server on its own: it adds swap before memory runs out, restarts a service that stops answering, throttles and then suspends the one website that overloads the server, looks after a full disk and, as the very last step, reboots a server that doesn't answer at all.
It runs as its own service (apolo-pulse), apart from the panel and its database, so it keeps working while the panel is down, while an update runs and after a reboot. It is on by default on every server. Open it from Monitoring → Apolo Pulse; administrators only.
In short: leave it on. Every action has its own switch, every action is recorded with the reason, and the defaults are careful: Apolo Pulse waits after a boot, after it starts and between restarts, never touches what an administrator stopped, and pauses itself during APOLO updates and migrations.
What it watches
Every 5 seconds Apolo Pulse measures the server:
- Memory: how much is really in use (cache and buffers count as free), swap, the kernel's memory pressure (PSI, where the kernel reports it), swapping and page faults, and how many processes the kernel stopped for lack of memory since boot.
- CPU: how busy it is, the load per core, and how long it waits for the disk (iowait and IO pressure).
- Disks: how full
/,/home,/varand/tmpare (each file system once). - Who uses it: during an incident, the usage of each website (every website runs in units of its own, so Apolo Pulse knows exactly which one), of the databases and of the system's own services.
Every 30 seconds it checks each service the way a visitor or a program would, with a time limit of 10 seconds (slower than 3 seconds counts as slow). Together these are the Health checks on the page:
| Service | The check |
|---|---|
| SSH | the server's greeting |
| APOLO panel | the panel's health page answers "ok" over HTTPS |
| Nginx | a request on port 80 gets an answer |
| Apache, OpenLiteSpeed | a request to the web server behind Nginx |
| MariaDB, MySQL, PostgreSQL | SELECT 1 (MariaDB/MySQL answering "Too many connections" is overloaded) |
| Redis | PING |
| Postfix, FTP | the greeting |
| Dovecot | IMAP on port 143, or 993 over TLS |
| DNS | a query to the server's own name server |
| Rspamd | its ping |
| APOLO agent | it answers Apolo Pulse |
| PHP of each website | its socket accepts a connection |
A service that is stopped or starting (for example because an administrator stopped it, or because it is being started again) doesn't count as failing: what an administrator stopped stays stopped.
What it does, in order
Apolo Pulse does one action at a time and records each one with the reason. The steps below go from the gentlest to the strongest; each has its switch under Settings.
1. Memory running out
Memory is under pressure when the share in use reaches the Memory threshold (90% by default) while the CPU is busy or the kernel reports memory pressure, for 30 seconds. It is critical when it reaches Critical memory (95% by default), when the kernel reports heavy pressure, or when less than 150 MB (or 3%) is free without swap, for 10 seconds.
- Swap: a server without swap gets a swap file of the suggested size (a third of the memory, at least 2 GB), or compressed memory (zram) where a file can't be made.
- The biggest process: when memory is about to run out, the largest process of a hosting account is stopped, before the kernel stops something important. Never a root process, a system service, PHP's main process or a website you excluded.
- The database: MariaDB or MySQL is restarted only when it is the cause: it holds at least 35% of the memory and grew by 10 points during the incident, or it holds 70% or more, or it stops answering while memory is short. At most twice in 6 hours, 30 minutes apart. When the database answers "Too many connections", the connections of the database user with the most connections are closed first.
Apolo Pulse also keeps the important services out of the kernel's reach when memory runs out: every minute the panel, its agent and Apolo Pulse itself, then Nginx, the databases, DNS and mail are made less likely to be stopped, and the websites' processes more likely.
2. One website overloads the server
When one website holds at least 25% of the memory (or 40% of the CPU or of the disk's time), twice as much as the next one, three measurements in a row:
- Throttled: its PHP and app get limits (CPU, memory at 75% of what it uses now, disk at 20 MB/s). The limits go by themselves 30 minutes after the server is calm again.
- Suspended: if the server is still short of memory 3 minutes later (90 seconds when it is critical), only that website is suspended. For CPU and disk it is suspended only when a key service also gets slow or stops answering.
A suspended website shows visitors the suspended page (HTTP 503) in their browser's language; certificates still renew. Its PHP and app are stopped, and its owner's processes in its folder are stopped every minute. The account's other websites, its e-mail and DNS keep working. The website stays suspended, also over a reboot, until an administrator reactivates it under Suspended websites on the page (Reactivate); after that it isn't suspended again for 30 minutes, only throttled.
A website that must never be throttled or suspended (a shop during a sale, for example) can be added to Websites Apolo Pulse leaves alone. The server is then protected less.
3. A service stops answering
A service that fails three checks in a row is restarted, after its configuration is tested where that is possible (Nginx, SSH, Apache), so a broken configuration isn't made worse. Between two restarts of the same service Apolo Pulse waits the Cooldown (600 seconds by default), and restarts a service at most 3 times an hour. If it still doesn't answer after that, Apolo Pulse leaves it for 6 hours and tells you (it tries again as soon as the service works). A unit that systemd reports as failed is started again after 5 minutes. Nothing is restarted in the first 5 minutes after a boot, nor while a memory or CPU incident is being handled. A website's PHP that stops accepting connections is restarted, at most every 30 minutes.
4. The server doesn't answer: emergency reboot
When SSH, the panel and Nginx all stop answering (not stopped: not answering) for longer than Reboot after (300 seconds by default) and the server itself is stuck too (the panel's agent doesn't answer either, Apolo Pulse's own checks run late, memory is critical, or the disks or processors are stalled), the server is rebooted. A server that works and only has its connections taken isn't rebooted. Never in its first 15 minutes after a boot, at most once an hour, and after 3 reboots in 24 hours not again for a day. Before the reboot Apolo Pulse writes down the incident with what it found, then reboots in the orderly way; if that doesn't happen, it forces the reboot after 2 minutes, and a minute later asks the kernel directly. After the server is back you get a notice saying so.
While the emergency reboot is on, Apolo Pulse also uses a hardware or virtual watchdog when the server has one: systemd then reboots a server whose kernel itself hangs. The kernel is set to reboot 10 seconds after a crash if it wasn't set to do anything. The page shows which watchdog the server has. Turning the emergency reboot off takes these settings back.
5. A full disk
- Almost full (less than 256 MB free, or less than 1 GB and 3%): the system journal is reduced to 200 MB and the package caches are cleared, at most every 6 hours.
- Clear caches on a full disk (on by default, since 1.9.3): at 98%, when the websites' caches are the cause; see below.
- Delete logs on a full disk (off by default): at 99%, see below.
- Repair and optimize databases on a full disk (on by default): at 98%, see below.
When a disk is 98% full or more, the caches come first, then the logs.
Clear caches on a full disk
On by default. Caches that grew without limit (WordPress cache plugins, LiteSpeed Cache, a framework's page or image cache) are a common reason for a full disk, and a website makes its cache again by itself. When a disk is 98% full, at most every 2 hours for each disk, Apolo Pulse looks for the websites' caches in the accounts' home folders on that disk. A folder is a cache when all of this is true:
- its name says so:
cache,.cache,caches,lscache,pagecache, a name that ends in-cacheor_cache(such aset-cacheorpage_cache), orlitespeedright inwp-content; - it holds many small files: at least 500, nine in ten of them smaller than 1 MB, and at least 20 MB of the disk in all;
- it isn't a program: nothing like
readme.txt,composer.json,package.json,wp-config.phpor.gitat its top; - it belongs to the account, and it isn't a website's own folder or one that holds a website.
Only when the caches found take at least 1% of the disk are they the cause. Then they are emptied, the largest first, until the disk is 95% full: everything in the folder goes, except the folder itself and the .htaccess and index.php (or index.html) at its top, which cache plugins put there on purpose. The website's page cache in Nginx is emptied too, because a cached page can name a style sheet or script that was just deleted. When the caches aren't the cause, nothing is deleted and nothing is written in the history.
It never looks in plugins, themes, mu-plugins, vendor, node_modules, wp-admin, wp-includes, upgrade or the mail folders (an e-mail folder named Cache is mail, not a cache). It doesn't touch the websites Apolo Pulse leaves alone, nor another owner's files. It never follows a link (a link is removed as a link), never enters another disk or a mounted folder, and checks every folder again just before it empties it. Each run is in the history, for example "Caches emptied on /home, which was 98.3% full: 4 cache folders, 6420 MB freed".
Delete logs on a full disk
Off by default, because deleted logs can't be brought back. When it is on and a disk is 99% full, at most every 30 minutes for each disk, Apolo Pulse:
- deletes old (rotated) logs on that disk, such as
messages-20261101,access.log.2.gzorerror.log.1, the largest first and only while the disk is still 97% full or more; - if the disk is still 97% full or more, reduces the system journal to 50 MB;
- while it is still 97% full or more, empties the largest current logs (1 MB and larger), the largest first. A current log is emptied, not deleted, because the program writing it keeps it open: deleting it would free nothing until that program restarts.
It looks only in the server's logs (/var/log, without the system journal's folder and the audit log) and in each website's logs folder, where it touches only the account's own *.log files. It never follows a link, never leaves the disk it is cleaning and never touches a file with a second name (a hard link). Each run is in the history, for example "Logs deleted on /var, which was 99.2% full: 3120 MB freed".
Repair and optimize databases on a full disk
On by default. Every minute Apolo Pulse measures how much space each MariaDB or MySQL database takes in the database server's data folder. When the disk with that folder is 98% full and a database grew by more than 50 MB in the last 30 minutes, it looks after that database's tables, at most every 3 hours for each database and only while the database server answers:
- Repair: MyISAM and Aria tables that weren't closed properly are checked, and the damaged ones are repaired (a full disk is a common reason for such damage).
- Optimize: tables with empty space inside them (at least 32 MB and 10% of the table, after rows were deleted) are optimized, the ones with the most first. This gives that space back to the disk. Only tables kept in a file of their own are rebuilt, because the shared InnoDB file never shrinks.
Rebuilding a table needs room, so a table is rebuilt only when one and a half times its size plus 256 MB is free; larger tables are left alone. No statement waits more than 10 seconds for a table that is in use, so the websites' queries don't queue behind it, and nothing is written to the binary log. Optimizing deletes no data; it only gives back space that is already empty. The history shows the result, for example "shop_db grew by 64 MB in 30 minutes on a disk 98.4% full: 0 tables repaired, 2 optimized, 380 MB freed".
Optimizing gives back space that is already empty; it can't stop a database that keeps growing. When a database grows that fast, look at what writes to it (a plugin that logs every visit, sessions, a cache table) and at the disk's size.
Safeguards
- For the first 60 seconds after it starts, Apolo Pulse only looks.
- One action at a time; every action has a time limit.
- Pauses: APOLO's own updates (45 minutes), system updates (3 hours), migrations and account restores (while they run) and your own maintenance pause stop the restarts, suspensions and reboots. Keeping the server from running out of memory goes on.
- Automatic actions off: Apolo Pulse only watches and shows what it sees.
- Excluded websites are never throttled or suspended, their processes aren't stopped and their caches aren't emptied.
- Every restart has a cooldown and an hourly limit; every repeated action (swap, database restart, disk and cache cleanup, reboot) has its own spacing.
The page
- Health
- The state at a glance: Healthy, Under pressure (an incident is being handled), Critical, A service doesn't answer, Starting, Off (automatic actions off), Not running or Turned off (in Addons), with memory, CPU and disks, and the watchdog the server has.
- Suspended websites
- The websites Apolo Pulse suspended or throttled, why, since when, and Reactivate. Fix the cause first (a plugin, a script, a bot), then reactivate.
- Health checks
- Each service with its last answer and how long it took.
- Incidents and actions
- See History.
- Settings
- See Settings.
The dashboard has an Apolo Pulse card with the memory, the services and the last action. When Apolo Pulse has a notice you haven't seen, a blinking yellow dot shows next to Monitoring in the menu; opening Apolo Pulse marks its notices as read.
Settings
Under Monitoring → Apolo Pulse → Settings. Every change is recorded in the Audit log.
- Automatic actions on
- Off: Apolo Pulse only watches and shows what it sees. The switches below need it on.
- Swap on
- When memory runs short and the server has no swap, add a swap file of the suggested size (zram where a file can't be made).
- Clear caches on a full disk on
- At 98%, the websites' caches on that disk, when they take at least 1% of it; see above.
- Delete logs on a full disk off
- At 99%, the logs on that disk; see above.
- Repair and optimize databases on a full disk on
- At 98%, the tables of a fast-growing database; see above.
- Service recovery on
- Restart a service that stops answering, at most 3 times an hour; MariaDB/MySQL only when it is the cause or doesn't answer.
- Website suspension on
- Throttle, then suspend only the website that overloads the server.
- Emergency reboot on
- Reboot a server that doesn't answer at all; also turns the watchdog on.
- Memory threshold (%) 90
- Memory in use that counts as pressure together with CPU load or memory pressure; 50 to 98.
- Critical memory (%) 95
- Memory in use at which Apolo Pulse acts at once; 60 to 99, always above the threshold.
- Reboot after (seconds) 300
- How long SSH, the panel and the websites must all be unresponsive before the emergency reboot; 120 to 3600.
- Cooldown (seconds) 600
- The wait between two restarts of the same service; 60 to 86400.
- E-mail notices on
- To the administrators' addresses, through the panel's mail settings; see Notices.
- Webhook
- An http:// or https:// address Apolo Pulse posts its actions to as JSON; see Webhook.
- Websites Apolo Pulse leaves alone
- Never throttled or suspended.
Pause for maintenance
While you work on the server (moving a database, a heavy import), pause Apolo Pulse under Pause for maintenance for 1 hour, 4 hours or 24 hours. Meanwhile it restarts nothing, suspends no website and doesn't reboot; it still keeps the server from running out of memory. A banner on the page says until when, with Resume now. APOLO's updates, system updates, migrations and account restores pause it by themselves.
History: incidents and actions
Incidents and actions lists what Apolo Pulse found and did. The history is kept on the server, apart from the panel's database, so it survives a reboot and a panel that doesn't run:
- Incidents (the newest 100): an episode from its start to its end, with its kind (memory, CPU, disk IO, disk space, a service, unresponsive), how it ended (resolved, rebooted, not resolved) and how many actions it took. Open one for the details: the state at its start and at its worst, what used the server (websites, databases, services) and the biggest processes, every step and the health checks.
- Lately: the recent actions, each with its result (done, failed or skipped) and how long it took.
Notices
Apolo Pulse sends notices itself, also while the panel is down:
- In the panel: the bell shows suspended websites, reboots and the server coming back, restarted services and the ones it couldn't restart, stopped processes, added swap, and that Apolo Pulse itself hasn't run for 5 minutes; they also go to the panel's notification channels (services category).
- By e-mail (E-mail notices): to the administrators' addresses through the panel's mail settings, in English, or in Serbian when the first administrator uses the panel in Serbian. Events within 20 seconds go out in one message, the same event isn't repeated for 30 minutes, and at most 12 messages go out an hour (the next one says how many were left out). A reboot is always reported, before it happens.
Webhook
With a webhook address set, Apolo Pulse sends each batch of events as a JSON POST (20 seconds at most, redirects aren't followed), with the headers Content-Type: application/json, User-Agent: APOLO-Pulse and X-Apolo-Event: pulse. The same limits as for e-mail apply.
{
"event": "pulse",
"server": "server1.example.com",
"at": "2026-12-01T10:00:20Z",
"title": "shop.example held (suspended): it used 61.7% of the memory",
"dropped": 0,
"events": [
{
"at": "2026-12-01T10:00:00Z",
"kind": "hold",
"target": "shop.example",
"text": "{0} held (suspended): it used {1}% of the {2}",
"params": ["shop.example", 61.7, {"text": "memory"}],
"result": "ok",
"incident": "20261201-095700-3f2a1c",
"message": "shop.example held (suspended): it used 61.7% of the memory"
}
],
"incident": {
"id": "20261201-095700-3f2a1c",
"kind": "memory",
"summary": "Memory in use 93.4% (515 MB available of 7821 MB)",
"culprits": [{"kind": "site", "id": "site_abcd", "name": "shop.example", "share": 61.7, "reason": "PHP and app"}]
}
}
message is the event in English; text and params are the same sentence as a template, for your own translation. kind is one of detect, swap, restart, kill, throttle, hold, release, reboot, back (the server is running again after a reboot), giveup, cleanup (disk and databases) and resolve; result is ok, failed or skipped. A Slack, Teams or Discord incoming webhook, or any small script, can receive it.
Turning it off
Apolo Pulse is a built-in addon. To turn it off, open Addons and choose Disable on its card. Then:
- its service stops and stays stopped: neither an update, nor a restart of the agent, nor a manual start runs it;
- the websites it suspended go back online and its limits are removed, as is the watchdog setting;
- it leaves the menu (Monitoring then opens Processes), the bell and the dashboard; its page says it is turned off and shows the kept history;
- its settings and history are kept for when you turn it on again with Enable.
To keep watching without any action, turn Automatic actions off instead.
On the server
| What | Where |
|---|---|
| The service | apolo-pulse.service (systemctl status apolo-pulse) |
| Its log | journalctl -u apolo-pulse |
| Settings | /etc/apolo/pulse.json (written by the panel) |
| Turned off in Addons | /etc/apolo/pulse-off |
| History and state | /var/lib/apolo/pulse/ (state.json, events.jsonl, incidents/) |
| Live status and pauses | /run/apolo-pulse/ (status.json, maintenance.d/) |
The service restarts itself after any failure, is never given up on by systemd, tells systemd every 5 seconds that it is alive (silent for 90 seconds, it is restarted) and is kept out of the kernel's reach when memory runs out.
Trying it without actions
To see what Apolo Pulse would do on a server without letting it act, run it in dry-run mode: it writes every action it would take into its log instead.
systemctl edit apolo-pulse
# add the two lines below, save, then restart it
[Service]
Environment=APOLO_PULSE_DRYRUN=1
systemctl restart apolo-pulse
journalctl -u apolo-pulse -f
Remove the two lines (systemctl revert apolo-pulse) and restart it to let it act again.
Questions
A website was suspended. What now?
Open the incident (What Apolo Pulse found next to the website) to see what used the server. Usually it is a plugin or script in a loop, a crawler or an attack on one page. Fix it (update or turn off the plugin, block the bot, raise the account's limits if the website simply needs more), then choose Reactivate. To protect a website from suspension altogether, add it to Websites Apolo Pulse leaves alone.
The page says Apolo Pulse isn't running
Start it in Services, or on the server with systemctl restart apolo-pulse, and look at journalctl -u apolo-pulse for the reason. If it was turned off in Addons, the page says so instead.
Will it reboot my server for a slow website?
No. The emergency reboot needs SSH, the panel and Nginx all to stop answering for 5 minutes (by default), never in the first 15 minutes after a boot, at most once an hour. A slow service is only watched; a service that doesn't answer is restarted, not the server.
Something missing or unclear? Ask support or report a bug.