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: docs/config.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,6 @@ This set of variables must be at the top of your TOML file due to not belonging
23
23
-`resolve_result_entry` (int) — Max amount of entries allowed in the cache. Default: 30.
24
24
-`debug` (bool) — Enables debugging for go-fuse in logs. This often emits sensitive data, so this should be false in production. Default: false.
25
25
-`disable_verification` (bool) — Allows skipping TOC validation, which can give slight performance improvements if files have already been verified elsewhere. Default: false.
26
-
-`prefetch_max_concurrency` (int) — Maximum number of layers that can perform prefetch operations concurrently at the snapshotter level. `0` means no limit. Default: 0.
-`enable` (bool) — Enables the prefetch feature for downloading specified files before marking a layer download as complete. Default: false.
86
+
-`max_concurrency` (int) — Maximum number of layers that can perform prefetch operations concurrently at the snapshotter level. `0` means no limit. Default: 0.
Copy file name to clipboardExpand all lines: docs/prefetch.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,31 +198,38 @@ Total spans to prefetch: 12
198
198
199
199
## Configuration
200
200
201
-
### Concurrency Control
201
+
### Enabling Prefetch
202
202
203
-
The snapshotter implements bounded concurrency for prefetch operations to prevent overwhelming the system when multiple containers start simultaneously.
204
-
205
-
#### Snapshotter Configuration
206
-
207
-
Prefetch concurrency is controlled via the snapshotter configuration file (typically `/etc/soci-snapshotter-grpc/config.toml`):
203
+
Prefetch must be explicitly enabled in the snapshotter configuration file:
208
204
209
205
```toml
206
+
[prefetch]
207
+
# Enable the prefetch feature
208
+
enable = true
209
+
210
210
# Maximum number of layers that can perform prefetch operations concurrently
211
211
# at the snapshotter level
212
212
# 0 = no limit (default)
213
213
# Positive value = maximum concurrent prefetch operations
214
-
prefetch_max_concurrency = 0
214
+
max_concurrency = 0
215
215
```
216
216
217
-
**Configuration options:**
218
-
-`0` (default): No limit on concurrent prefetch operations
219
-
- Positive integer (e.g., `10`): Maximum number of layers that can prefetch simultaneously
217
+
### Configuration Options
220
218
221
-
#### Example Configuration
219
+
-`enable` (default: `false`): Controls whether the prefetch feature is enabled. When disabled, prefetch artifacts are ignored even if present.
220
+
-`max_concurrency` (default: `0`): Limits concurrent prefetch operations across all layers.
221
+
-`0`: No limit on concurrent prefetch operations
222
+
- Positive integer (e.g., `10`): Maximum number of layers that can prefetch simultaneously
0 commit comments