You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extension/storage/filestorage/README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,13 @@ The default directory is `%ProgramData%\Otelcol\FileStorage` on Windows and `/va
27
27
`timeout` is the maximum time to wait for a file lock. This value does not need to be modified in most circumstances.
28
28
The default timeout is `1s`.
29
29
30
+
`max_size` sets the maximum on-disk size of each bbolt database file in bytes.
31
+
When a write would need the file to grow past this limit, the write is rejected with a storage-full error.
32
+
A value of `0` means unlimited size.
33
+
Writes that fit into already-allocated free space are still allowed, even when the file is already at the configured limit.
34
+
When rebound compaction is enabled, `max_size` must be greater than or equal to both
35
+
`compaction.rebound_needed_threshold_mib * 1,048,576` and `compaction.rebound_trigger_threshold_mib * 1,048,576`.
36
+
30
37
`fsync` when set, will force the database to perform an fsync after each write. This helps to ensure database integrity if there is an interruption to the database process, but at the cost of performance. See [DB.NoSync](https://pkg.go.dev/go.etcd.io/bbolt#DB) for more information.
31
38
32
39
`create_directory` when set, will create the data storage and compaction directories if they do not already exist.
@@ -56,6 +63,9 @@ A value of zero will ignore transaction sizes.
56
63
It will remove all temporary files in the compaction directory (those which start with `tempdb`),
57
64
temp files will be left if a previous run of the process is killed while compacting.
58
65
66
+
If `max_size` is set, both `compaction.rebound_needed_threshold_mib` and `compaction.rebound_trigger_threshold_mib`
67
+
must be less than or equal to that limit after converting MiB to bytes.
68
+
59
69
### Rebound (online) compaction
60
70
61
71
For rebound compaction, there are two additional parameters available:
0 commit comments