Configure workers for session recording
This feature requires HCP Boundary or Boundary Enterprise
Session recording requires that you configure at least one worker for local storage.
Note
You cannot use an HCP managed worker for the local storage. HCP Boundary users must configure a self-managed worker to enable session recording.
Requirements
Workers that you configure for storage must:
- Have access to the external storage provider
- Have an accessible directory defined by
recording_storage_path
for storing session recordings while they are in progress. On session closure, Boundary moves the local session recording to remote storage and deletes the local copy.- For HCP Boundary, refer to the Self-managed worker configuration documentation.
- For Boundary Enterprise, refer to the refer to the worker configuration documentation.
- Have available disk space defined by
recording_storage_minimum_available_capacity
. If you do not configure the minimum available storage capacity, Boundary uses the default value of 500MiB. For more information about how much space is required to store BSR files, refer to storage considerations. - Run Darwin, Windows, or Linux. The following binaries are not supported for session recording: NetBSD, OpenBSD, Solaris.
Local storage
Workers require sufficient local disk space in the recording_storage_path
to store session recordings while they are in progress. Local disk space is also required for session recording playback.
The recording_storage_minimum_available_capacity
vaule defines the minimum available disk space that must be available on the worker for session recording and session recording playback. This threshold determines the local storage state of the worker.
The possible storage states determined by the recording_storage_minimum_available_capacity
are:
Available
: The worker is above the storage threshold and is available to proxy sessions that are enabled with session recording.Low storage
: The worker is below the storage threshold. Existing sessions can continue without interruption, but new sessions that are enabled with session recording cannot be proxied. The worker is not available to record new sessions or play back existing recordings.Critically low storage
: The worker is below half the storage threshold. Existing sessions that are enabled with session recording will be forcefully closed. The worker is not available to record new sessions or play back existing recordings.Out of storage
: The worker is out of local disk space. It is not available to record new sessions or play back existing recordings. The worker is in a unrecoverable state. An administrator must intervene to remedy the issue.Not configured
: The worker does not have arecording_storage_path
configured.Unknown
: The default local storage state of a worker. This state indicates that the local storage state of a worker is not yet known. Older workers (< 0.16.0) will be in this state.
If a worker is in an unhealthy local storage state, Boundary does not allow new session recordings or session recording playback until the worker is in an available
local storage state.
Example configuration
Refer to the following example configuration to configure workers for session recording storage:
worker {
auth_storage_path = "/boundary/demo-worker-1"
initial_upstreams = ["10.0.0.1"]
recording_storage_path = "/local/storage/directory"
recording_storage_minimum_available_capacity = "500MB"
}
Next steps
After you configure worker storage, you can configure the external storage provider for Amazon S3 or MinIO.