forked from the-distro/infra
adjust hydra-gc numbers
we want to see how garbage collection would behave on a 480GB drive
This commit is contained in:
parent
96d58bbd41
commit
504a443acc
|
@ -28,7 +28,7 @@
|
|||
bagel.services.buildbot = {
|
||||
enable = true;
|
||||
domain = "buildbot.forkos.org";
|
||||
builders = [ "builder-3" ];
|
||||
builders = [ "builder-11" ];
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
|
|
@ -156,8 +156,8 @@ in
|
|||
script = ''
|
||||
while : ; do
|
||||
percent_filled=$(($(stat -f --format="100-(100*%a/%b)" /mnt)))
|
||||
if [ "$percent_filled" -gt "85" ]; then
|
||||
${config.nix.package.out}/bin/nix-store --gc --max-freed 100G --store /mnt
|
||||
if [ "$percent_filled" -gt "54" ]; then
|
||||
${config.nix.package.out}/bin/nix-store --gc --max-freed 50G --store /mnt
|
||||
else
|
||||
break
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue