]> git.openstreetmap.org Git - chef.git/commitdiff
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 7f4904743afb666f8f67869c6d7d9398cc3ff0c9..5766b84cb3c43ecf823fbd5bbc55623eba3ca110 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");