Make tile expiry kick in at 88% full
authorTom Hughes <tom@compton.nu>
Thu, 15 Oct 2015 11:06:41 +0000 (12:06 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 15 Oct 2015 11:06:41 +0000 (12:06 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 7f49047..5766b84 100644 (file)
@@ -18,7 +18,7 @@ $lockmgr->lock("${tiledir}/cleanup") || exit 0;
 
 my $tempfile = tmpnam();
 
-if (df($tiledir)->{per} > 90)
+if (df($tiledir)->{per} > 88)
 {
     system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+5", "-fprintf", $tempfile, "%A@ %p\n");