Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Health checks and uptime

What an external uptime monitor should request on an Exponential site, how to tell a planned maintenance window from an outage, which internal checks to run on the server, and how Velocity's health endpoint and watchdog…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/hosting/operations/health-checks-and-uptime.md

On this page

Health checks and uptime

This page is for system administrators who set up uptime monitoring and load balancer health checks for Exponential sites, and for product managers who describe availability in a hosting plan. It answers: which URLs to request from outside, what a healthy answer looks like, how a planned maintenance window shows, which checks to run on the server itself, and what Velocity adds.

Exponential has "no single health URL"; the installation book recommends combining "a check from outside with the status commands inside" (10.11). The inside half is on Monitoring overview.

Contents

  1. Checks from outside
  2. Planned maintenance is not an outage
  3. Checks on the server
  4. Velocity: health endpoint and watchdog
  5. Load balancer health checks
  6. Uptime in a hosting plan
  7. Checklist

Checks from outside

Two requests cover the public site and the application behind it:

CheckCommandHealthy
The site answerscurl -s -o /dev/null -w '%{http_code} %{time_total}\n' https://www.example.com/200 and a time you know
The administration answerscurl -s -o /dev/null -w '%{http_code}\n' https://www.example.com/admin/user/login200

The front page is often served from a cache (Velocity's response cache, the HTTP cache, a CDN), so it can answer while the database is down. That is one reason to check the administration login page as well, as the installation book does; a page whose content you can check (a word only the rendered page contains) is stronger than a status code. Measure the time from the same place each time; "a single page load proves nothing" (Deploying).

Tip

Point the monitor at the address visitors use, including HTTPS, so an expired certificate or a broken redirect is an alert too. Add a second check per node or engine port when you run several.

Planned maintenance is not an outage

While maintenance mode is on, every page request gets the maintenance page with these headers (Maintenance mode guide):

HTTP/1.1 503 Service Unavailable
Retry-After: <seconds until the expected end, or 120 when none is given>
Cache-Control: no-store, no-cache, must-revalidate, private
X-Robots-Tag: noindex

Search engines read a 503 with Retry-After as "come back later". For your monitoring:

  • Either pause the check for the window, or let it accept a 503 that carries Retry-After while php bin/php/maintenance.php status says maintenance is on.
  • Alert when the window lasts longer than announced: "maintenance never ends by itself when the expected time passes". The administration page warns once the end has passed; your monitor should too.
  • Images, styles and scripts are still served during maintenance; a check on a static file stays green.

See Maintenance mode.

Checks on the server

Run these on a schedule as the site's user and alert on a non-zero exit status:

Setup, System information: PHP, database and server with health checks
Setup, System information: PHP, database and server with health checks
./console exp:systeminfo --json                      # exit 1 when a health check fails
php bin/php/cache.php status --json --allow-root-user   # ends in PASS
php bin/php/audit.php verify --allow-root-user          # exit 0: every chain intact
df -h /path/to/installation                             # room for caches, logs and a backup

exp:systeminfo reports the health checks of Setup > System information for the command-line PHP: PHP version and extensions, OPcache, memory_limit, max_execution_time and more, each with what to do (System information, health checks). Open the administration page through each server you run to see the checks of the PHP that serves visitors.

Velocity: health endpoint and watchdog

A site served by Exponential Velocity has a health endpoint of the server itself (Velocity control panel):

curl -s http://127.0.0.1:8088/Q/health

It "answers anyone with {"status":"ok"} and gives figures to an admin only". It tells you that the server process answers; it does not render a page of the site, so keep the external page checks as well. /Q/metrics gives Prometheus text for a scraper; access from other machines is governed by settings/velocity.ini [DashboardSettings] (Token, Remote). Port 8088 is the shipped plain-HTTP port of the qbix engine ([ServerSettings] Port).

The watchdog is a systemd timer that starts the default engine again when it is down and nobody meant it to be (a crash, an out-of-memory kill, a restart whose caller was killed):

./console exp:velocity watchdog install --apply --allow-root-user   # service and timer, enabled
./console exp:velocity watchdog status --allow-root-user    # timer, markers, last check and last start

It checks every [WatchdogSettings] Interval seconds (shipped 45), never touches a server that runs ("whether it answers or not"), and backs off after three failed starts in a row. It writes var/log/velocity-watchdog.log and audit events (The watchdog). A server that runs but does not answer is for your monitoring to catch.

Load balancer health checks

A load balancer needs a cheap request that fails when a node cannot serve. Options, from the sources above:

OptionProsCons
The administration login pagegoes through the kernel, as visitors' pages doheavier than a static file
Velocity's /Q/healthcheap, made for monitorssays the server process answers, not that the site renders
A static filecheapeststays green when PHP is broken

Whatever you choose, make sure a node in maintenance mode or with a stopped engine is taken out, and that the check does not create sessions or fill caches with one entry per request.

Uptime in a hosting plan

The figures of an availability promise are a business decision; the sources give none. What the platform gives you to keep such a promise:

  • maintenance windows that answer with a clean 503 and an expected end, instead of errors;
  • a watchdog that restarts Velocity after a crash;
  • status commands with exit codes for automated checks;
  • logs and an audit trail to explain an incident afterwards.

See SLA options for how to frame them.

Checklist

  • To do: An external check requests the front page and the administration login page over HTTPS.
  • To do: Maintenance windows are either paused in the monitor or recognized by the 503 with Retry-After.
  • To do: An overrunning maintenance window raises an alert.
  • To do: exp:systeminfo, cache status and audit verify run on the server by exit code.
  • To do: The Velocity watchdog is installed where Velocity serves the site, and its log is watched.
  • To do: Load balancer checks take a node out when it cannot render a page.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x