Monitor worker health
Boundary workers periodically report health and capacity metrics to the controller. The controller uses these signals to evaluate whether a worker can accept new proxied connections, record sessions, or continue handling active traffic.
Administrators can monitor worker health in the Admin UI and the CLI to track fleet availability, detect resource exhaustion early, and troubleshoot failed sessions.
Worker health status
Boundary calculates an overall health_status for each worker based on status reporting recency, process I/O capacity, and local storage state.
A worker resolves to one of the following health states:
healthy- The worker reported recently, and both its I/O capacity and local storage are in a healthy state.unhealthy- The worker has not reported a status update within the last 15 seconds, or either its I/O capacity or local storage is in an unhealthy state.unknown- Boundary cannot determine the I/O capacity state or the local storage state, and neither signal is unhealthy.
Refer to Health states and metrics for the criteria and the state each signal maps to.
Conflict resolution
When individual health signals disagree, Boundary resolves the overall worker health using the following precedence order:
unhealthy > unknown > healthy
The least healthy signal always determines the final health status:
- If one signal is
unhealthyand the other ishealthyorunknown, the overall status isunhealthy. - If one signal is
unknownand the other ishealthy, the overall status isunknown. - When both signals match, the worker reports that shared status.
When a worker is unhealthy, the Admin UI and API provide a human-readable description explaining the underlying cause.
Process I/O capacity
Boundary tracks process input/output (I/O) capacity through file descriptors.
Every active session connection, socket, and open file on a worker consumes an operating system file descriptor.
Unix-based systems enforce a per-process file descriptor limit (RLIMIT_NOFILE).
When a worker approaches this limit, it cannot establish new proxied connections and produces session errors.
Boundary tracks file descriptor consumption on Linux, macOS, FreeBSD, NetBSD, OpenBSD, and Solaris.
It compares the available file descriptors (available_io_capacity) to the io_minimum_available_capacity threshold to derive the worker's io_capacity_state.
The default threshold is 100 file descriptors.
The worker checks its I/O capacity every 5 seconds.
Boundary assigns one of the following states:
available- Available capacity is at or above the threshold.low- Available capacity is below the threshold but at or above half of it.critically low- Available capacity is below half of the threshold.exhausted- No file descriptors are available.unknown- Boundary cannot calculate the capacity.not applicable- The host operating system does not use file descriptors.
Refer to Health states and metrics for the exact conditions. To set the threshold, refer to Configure and monitor worker health.
Storage capacity
Workers configured for session recording store active session recordings in local disk storage before uploading them to remote storage buckets. Boundary tracks storage through the following signals:
local_storage_state- A qualitative state based on therecording_storage_minimum_available_capacitythreshold.available_storage_capacity- The remaining storage space in bytes available on the worker disk.max_storage_capacity- The total storage capacity in bytes on the worker disk.
For workers without session recording configured, local_storage_state is not configured and the storage capacity metrics are empty.
The worker checks its disk space every 5 seconds.
Refer to Health states and metrics for the possible storage states. To set the threshold, refer to Configure workers for session recording.
Effect on session recording
A worker pauses session recording when its I/O capacity is critically low or exhausted:
- When the
io_capacity_stateiscritically loworexhausted, the worker closes any in-progress recordings and does not start new ones. - When the
io_capacity_statereturns toavailable,low, ornot applicable, the worker resumes session recording. - When the
io_capacity_stateisunknown, the worker keeps its current recording behavior.
Storage capacity also affects recording. Refer to Configure workers for session recording for the behavior in each storage state.
Reporting cadence and metric synchronization
Workers report health and metrics to controllers across two scheduled jobs:
- Routing info remote procedure call (RPC): Runs every 10 seconds to update qualitative states (
io_capacity_state,local_storage_state). - Statistics RPC: Runs every 15 seconds to update quantitative capacity values (
available_io_capacity,max_io_capacity,available_storage_capacity,max_storage_capacity).
Because these reports run on separate intervals, quantitative metrics and qualitative states can be briefly out of sync.
More information
Refer to the following topics for more information:
- Manage workers
- Configure a worker filter
- Configure workers for session recording
- worker stanza configuration