Skip to content

Commit 8cbfcd2

Browse files
committed
Added prune limits to avoid repo runs out of space
1 parent 7f714da commit 8cbfcd2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

contrib/posix/conf.d/prune.conf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,16 @@ default-command = "prune"
2929
[prune.prune]
3030
schedule = "daily"
3131
schedule-lock-wait = "4h"
32-
32+
# Auto remove old cache directories in the local cache
33+
cleanup-cache = true
34+
# Repacking (repository compaction)
35+
# Limited by:
36+
# - `max-unused` (higher precentage, less repacking)
37+
# - `max-repack-size` (lower size value, less repacking)
38+
#
39+
# Repacking requires up to `max-repack-size` temporary space in the repository,
40+
# ensure it has the configured size available at least before running prune.
41+
max-repack-size = "5g"
42+
# Tolerate given limit of unused data (default 5%)
43+
# A higher percentage performs less repacking which will speedup prune.
44+
max-unused = "5%"

0 commit comments

Comments
 (0)