nix-cache: Tweak settings

This commit is contained in:
Erwin Boskma 2024-02-28 22:50:23 +01:00
parent 7d4f3d8d51
commit 7506048118
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -95,7 +95,7 @@
listen = "127.0.0.1:8080"; listen = "127.0.0.1:8080";
garbage-collection = { garbage-collection = {
default-retention-period = "3 months"; default-retention-period = "6 weeks";
}; };
storage = { storage = {
@ -116,16 +116,16 @@
# #
# If 0, chunking is disabled entirely for newly-uploaded NARs. # If 0, chunking is disabled entirely for newly-uploaded NARs.
# If 1, all NARs are chunked. # If 1, all NARs are chunked.
nar-size-threshold = 64 * 1024; # 64 KiB nar-size-threshold = 256 * 1024; # 256 KiB
# The preferred minimum size of a chunk, in bytes # The preferred minimum size of a chunk, in bytes
min-size = 16 * 1024; # 16 KiB min-size = 128 * 1024; # 128 KiB
# The preferred average size of a chunk, in bytes # The preferred average size of a chunk, in bytes
avg-size = 64 * 1024; # 64 KiB avg-size = 256 * 1024; # 256 KiB
# The preferred maximum size of a chunk, in bytes # The preferred maximum size of a chunk, in bytes
max-size = 256 * 1024; # 256 KiB max-size = 1024 * 1024; # 1024 KiB
}; };
}; };
}; };