feat: new worker config for minimumAvailableCapacity
This commit is contained in:
1 parent
f483d1417c
commit
aea473c77b
10 files changed
+322
-68
No files matched your search
@@ -149,20 +149,30 @@ and how long a BSR will be retained in the storage bucket.
|
||||
### Boundary workers requirements
|
||||
|
||||
[Session recording](/boundary/docs/configuration/session-recording) requires that you [configure at least one worker for local storage](/boundary/docs/configuration/session-recording/create-storage-bucket#boundary-workers-requirements).
|
||||
|
||||
<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.
|
||||
</Note>
|
||||
|
||||
The worker that you configure for storage must:
|
||||
|
||||
- Have access to the AWS S3 storage bucket
|
||||
- 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](/hcp/docs/boundary/self-managed-workers/session-recording) documentation.
|
||||
- For Boundary Enterprise, refer to the refer to the [worker configuration](/boundary/docs/configuration/worker/worker-configuration#session-recording) documentation.
|
||||
- Have at least 1 MB of available disk space.
|
||||
- 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.
|
||||
- Run Darwin, Windows, or Linux. The following binaries are not supported for session recording: NetBSD, OpenBSD, Solaris.
|
||||
|
||||
<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.
|
||||
</Note>
|
||||
|
||||
Refer to the following example configuration:
|
||||
|
||||
```hcl
|
||||
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"
|
||||
}
|
||||
```
|
||||
|
||||
Complete the following steps to create a storage bucket in Boundary for session recording:
|
||||
|
||||
<Tabs>
|
||||
|
||||
@@ -37,6 +37,9 @@ worker {
|
||||
# Local storage path required if session recording is enabled
|
||||
recording_storage_path = "tmp/boundary/"
|
||||
|
||||
# Minimum available disk space required in the local storage path if session recording is enabled
|
||||
recording_storage_minimum_available_capacity = "500MB"
|
||||
|
||||
# Mutually exclusive with hcp_boundary_cluster_id
|
||||
initial_upstreams = [
|
||||
"10.0.0.1",
|
||||
@@ -84,6 +87,16 @@ worker {
|
||||
Session recordings are stored in the local storage while they are in progress.
|
||||
When the session is complete, Boundary moves the local session recording to remote storage and deletes the local copy.
|
||||
|
||||
- `recording_storage_minimum_available_capacity` - A value measured in bytes that is used for defining the local storage state
|
||||
of the worker. Boundary compares this value with the available local disk space found in the `recording_storage_path`.
|
||||
The possible storage states based on the `recording_storage_minimum_available_capacity` are:
|
||||
- Available - The worker is above the storage threshold and can 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 will not be proxied.
|
||||
- Critically low storage - The worker is below half the storage threshold. Existing sessions that are enabled with session recording will be forcefully closed.
|
||||
- Out of storage - The worker is out of local disk space. The worker is in a unrecoverable state. An administrator must intervene to remedy the issue.
|
||||
- Not configured - The worker does not have a local 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.
|
||||
|
||||
- `tags` - A map of key-value pairs where values are an array of strings. Most
|
||||
commonly used for [filtering](/boundary/docs/concepts/filtering) targets a
|
||||
worker can proxy via [worker
|
||||
@@ -167,6 +180,9 @@ worker {
|
||||
# Local storage path required if session recording is enabled
|
||||
recording_storage_path = "tmp/boundary/"
|
||||
|
||||
# Minimum available disk space required in the local storage path if session recording is enabled
|
||||
recording_storage_minimum_available_capacity = "500MB"
|
||||
|
||||
# Workers typically need to reach upstreams on :9201
|
||||
initial_upstreams = [
|
||||
"10.0.0.1",
|
||||
|
||||
Reference in new issue
Block a user