System Health Checks¶
System Health Checks exposes the health state of Emakin components in JSON form. Use it to confirm system availability, detect degraded dependencies, and identify components that need attention.
The health endpoint is available at:
1 | |
Result States¶
| Result | Description |
|---|---|
| Healthy | Component is functioning correctly |
| Degraded | Component has a non-critical issue |
| Unhealthy | Component has failed |
Cluster Report¶
The health endpoint reports the whole cluster, whichever node you query. It includes nodes running web, SMTP, or full-text services without workers. The same information is available in Host Administration's Worker monitoring tab.
The JSON response uses schema version 2:
statusis the overall system health.coverageindicates whether the report has current information for all visible nodes.resultslists shared application and service checks.nodeslists individual processes, their roles, availability, measurement times, and health results.
Monitoring integrations that previously read CPU, thread count, or disk checks from results must now read nodes[].results.
Example response (abbreviated):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
CPU usage is the process's CPU usage normalized by logical processor count, not total machine CPU utilization. Disk available and required values are in MB and describe the drive containing the application. Thread count belongs to the process. Processes on the same machine are listed separately, and process identity changes after a restart.
A failed connection on one node can affect the overall result even when other nodes can reach the same service. Inspect that node's results to identify the affected connection. Full-text catalog problems are shown under the node hosting the catalog.
Full-Text Availability¶
One full-text node is active; the others remain ready to take over. A passive role is normal and does not by itself indicate a problem.
| Situation | Overall full-text health | Administrator action |
|---|---|---|
| Active service is available and standby nodes are ready | Healthy | No action required. |
| Active service is available, but a standby node is not ready | Degraded | Inspect the affected node's registration, storage access, and catalog checks. |
| No usable active service is available | Unhealthy | Check full-text service availability and restore an active service. |
After failover, confirm that the replacement node is active and review the readiness of the remaining standby nodes.
The Cache check reports Redis connection availability for each node. It does not measure cache hit rate, memory usage, or operation latency.
Freshness and Availability¶
Information normally updates approximately every 10 seconds. A node shows delayed after 30 seconds without an update and unreachable after 60 seconds. Measurements older than 30 seconds are marked out of date. Check both node availability and measurement time: a visible node can still have missing or old measurements.
Each check runs at a frequency that matches its cost. Between runs, its last result is reported again:
| Checks | Frequency |
|---|---|
| Disk space, CPU, thread count, cache, full-text service, registration and catalogs, file repository directories | Every 10 seconds |
| Database connections and full-text storage access | Every 30 seconds |
| Job and full-text queue checks | Every minute |
| External services: Market, Mobile Push, Timestamp, OpenAuth, LDAP, WOPI, message service (SMTP) and Tika | Every 5 minutes |
A failed check that normally runs less often than once a minute is retried after one minute, so recovery is reported early. Checks that run once a minute or less often start at slightly different times on each node, so nodes do not contact the same service together. The message service check only connects and greets the server; it does not log in.
seenAt shows the last node update; each node's observedAt shows the last measurement pass in which every check had a current result. Missing or stale measurements prevent a healthy overall result. For worker nodes, this also applies when worker status is missing, out of date, or not running. Planned stopped processes remain visible but do not degrade the remaining running processes.
| Coverage | Meaning | Administrator action |
|---|---|---|
complete | All visible running nodes have current information. Health checks may still be degraded or unhealthy. | Review status and any failing checks. |
partial | Information for one or more nodes is missing or out of date. | Check the affected service or pod and its connectivity. |
unavailable | A system report cannot be obtained, or no running nodes are visible. | Check service availability and monitoring connectivity. |
Healthy and degraded reports return HTTP 200; unhealthy reports return HTTP 503. Configure monitoring to inspect the JSON status and coverage as well as the HTTP status code, so degraded or incomplete reports are not missed.
Old processes disappear from the list after 10 minutes. An absent node is not proof that the expected deployment is healthy: compare the list with the services and replicas that should be running. Keep deployment-level availability alerts in place. During an upgrade, update every node; older versions may appear without health measurements.
Use service-specific checks for automatic restarts and traffic routing. A cluster-wide problem should not cause a healthy node to be restarted or removed from traffic.
The health endpoint allows anonymous access and includes operational details. Restrict access to trusted monitoring networks.
Documented Health Checks¶
The documented health checks include:
- Disk Space
- CPU Usage
- Thread Count
- Cache
- Application Database Connection
- Market Connection
- Mobile Push Connection
- Timestamp Service Connection
- Full Text Search Service
- Full Text Service Database Access
- Full Text Service Registration
- Full Text Catalogs
- Full Text Index Queue
- Mail Sending Jobs
- Mail Receive Jobs
- Workflow Processing Jobs
- Assistant Jobs
- Job Queue Latency
- OpenAuth
<servicename>Service Connection - FileRepository
<servicename>Directory - Ldap
<ldaphost>Service Connection - WOPI
<servicename>Service Connection - Message Service
<servicehost>Connection - Tika Service Connection
Use the detailed per-check configuration and thresholds in your environment as the canonical reference for exact failure conditions and severity levels.
Job Checks¶
The job checks are evaluated for each running application and are at most degraded:
| Check | Degraded when |
|---|---|
| Mail Sending Jobs | A mail sending job failed within the last 2 hours. |
| Mail Receive Jobs | A mail receive job failed within the last hour. |
| Workflow Processing Jobs | A work item processing job failed within the last hour. |
| Assistant Jobs | An assistant or personal assistant job failed within the last hour. |
| Job Queue Latency | A runnable job is still waiting after its deadline by more than 5 minutes (interactive), 30 minutes (standard) or 6 hours (background). |
Job Queue Latency reports the number of late jobs and the oldest deadline for each job class. Jobs of disabled or deleting domains are not counted, because they are intentionally not processed.
The following OpenTelemetry metrics complement these checks:
| Metric | Description |
|---|---|
worker.job.failures | Jobs that ended with an error, tagged by worker and class. |
worker.job.lateness | Delay between a job's deadline and its start, tagged by class. |
worker.lease.lost | Running jobs cancelled because their lease could not be renewed, tagged by reason (rejected or renewal_error). |
worker.lease.recovered | Jobs taken back from an expired owner and returned to the queue, tagged by application. |