Configure and monitor worker health
Set the file descriptor threshold that Boundary uses to evaluate a worker's I/O capacity, change the process limit safely, and view worker health in the Admin UI or the CLI.
To learn how Boundary calculates worker health, refer to Monitor worker health.
Configure the I/O capacity threshold
Configure the file descriptor threshold using the io_minimum_available_capacity parameter in the worker stanza.
The default threshold is 100 file descriptors.
worker {
io_minimum_available_capacity = 100
}
The value must be a positive integer.
You can also set it as a string, including a reference such as env:// or file://.
At startup, Boundary verifies that the threshold is lower than the kernel-enforced process limit (max_io_capacity).
The worker fails to start if the threshold is greater than or equal to the limit.
Refer to worker stanza configuration for the full parameter reference.
To set the storage threshold for session recording, refer to Configure workers for session recording.
Change the file descriptor limit
Boundary verifies that io_minimum_available_capacity is lower than the file descriptor limit only when the worker starts.
To change the limit safely, set it in the worker's service configuration instead of on the running process.
For example, set LimitNOFILE in the systemd unit file.
Use a value higher than io_minimum_available_capacity, and then restart the worker.
Recover a worker with low capacity
To recover a worker that is stuck in low or critically low, take one of the following actions, and then restart the worker:
- Raise the file descriptor limit above
io_minimum_available_capacity. - Lower
io_minimum_available_capacityin theworkerstanza.
To recover a worker with an unhealthy storage state, free disk space in the recording_storage_path directory.
The worker returns to the available state on its own, without a restart.
View worker health and capacity
You can view the health status and capacity metrics of a worker in the Admin UI or with the CLI.
The Boundary Admin UI provides visibility into worker status and resource capacity.
Workers list page
On the Workers page, you can search and filter workers by address, health status, or worker tags, and view the overall health status of each worker in the Status column:

Worker details page
On an individual worker's details page, you can review detailed health metrics, including human-readable fractions for available storage and I/O capacity (such as 1.8 GB / 10 GB storage or 924 / 1024 file descriptors) and communication recency:
Health and capacity alert banners
When a worker enters a degraded or unhealthy state, the Admin UI displays an alert banner on the worker details page with a description explaining the underlying causes and remediation guidance:
Storage capacity exhausted: Displayed when worker disk storage is full and the worker cannot process sessions requiring local recording storage:

OS resource limit reached: Displayed when process file descriptors reach kernel operating system limits due to high session activity:

Multiple issues: Displayed when multiple health signals are degraded, such as simultaneous storage exhaustion and I/O limit exhaustion:

More information
Refer to the following topics for more information: