From cbd5e504b3798680befcf2fab3326711ce971b4e Mon Sep 17 00:00:00 2001 From: User for running Openstreetmap-things Date: Mon, 6 Jun 2016 12:24:09 +0200 Subject: [PATCH] add HD tiles to daily maintenance --- scripts/dailymaint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/dailymaint.sh b/scripts/dailymaint.sh index e3da2b7..64b7cf1 100755 --- a/scripts/dailymaint.sh +++ b/scripts/dailymaint.sh @@ -4,9 +4,11 @@ echo "Daily maintenance starting: `date`" # Delete tiles in zoomlevel 13-14 that are older than 336 hours = 14 days sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 13-14 --action delete --rmemptydirs --minage 336 /var/lib/tirex/tiles/osm sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 13-14 --action delete --rmemptydirs --minage 336 /var/lib/tirex/tiles/osmde +sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 13-14 --action delete --rmemptydirs --minage 336 /var/lib/tirex/tiles/osmhd # Delete tiles in zoomlevel 15-20 that are older than 168 hours = 7 days sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 15-20 --action delete --rmemptydirs --minage 168 /var/lib/tirex/tiles/osm sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 15-20 --action delete --rmemptydirs --minage 168 /var/lib/tirex/tiles/osmde +sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 15-20 --action delete --rmemptydirs --minage 168 /var/lib/tirex/tiles/osmhd # Delete all tiles in our bicycle/lecture hall overlay that are older # than 24 hours as these are REALLY cheap to regenerate on the fly. sudo -u tirex -- /home.local/osm/bin/osmtilecleanup.pl --zoom 10-20 --action delete --rmemptydirs --minage 24 /var/lib/tirex/tiles/rrze-ovl @@ -18,6 +20,8 @@ export PRIO=31 --limit 2000 --rrs /home.local/osm/bin/osmrerenderwrapper.sh /var/lib/tirex/tiles/osm /home.local/osm/bin/osmtilecleanup.pl --zoom 0-12 --action rerender \ --limit 2000 --rrs /home.local/osm/bin/osmrerenderwrapper-osmde.sh /var/lib/tirex/tiles/osmde +/home.local/osm/bin/osmtilecleanup.pl --zoom 0-12 --action rerender \ + --limit 2000 --rrs /home.local/osm/bin/osmrerenderwrapper-osmhd.sh /var/lib/tirex/tiles/osmhd # Regenerate (part of) zoomlevel 13-14 tiles. Some of these are pretty expensive, so # we rather rerender them scheduled than when they change (usually they really don't, # it is 99 percent false alerts). @@ -25,6 +29,8 @@ export PRIO=31 --limit 1000 --rrs /home.local/osm/bin/osmrerenderwrapper.sh /var/lib/tirex/tiles/osm /home.local/osm/bin/osmtilecleanup.pl --zoom 13-14 --action rerender \ --limit 1000 --rrs /home.local/osm/bin/osmrerenderwrapper-osmde.sh /var/lib/tirex/tiles/osmde +/home.local/osm/bin/osmtilecleanup.pl --zoom 13-14 --action rerender \ + --limit 1000 --rrs /home.local/osm/bin/osmrerenderwrapper-osmhd.sh /var/lib/tirex/tiles/osmhd # Update tile stats for munin tirex-tiledir-check --stats=/var/lib/tirex/stats/tiles-osm.stats osm tirex-tiledir-check --stats=/var/lib/tirex/stats/tiles-osmde.stats osmde @@ -40,6 +46,7 @@ fi # Rerender Erlangen / Nuernberg. Around 4000 tiles, takes around 30 minutes. tirex-batch --prio=${PRIO} --expire=+14400 map=osm bbox=10.93,49.37,11.14,49.63 z=13-19 tirex-batch --prio=${PRIO} --expire=+14400 map=osmde bbox=10.93,49.37,11.14,49.63 z=13-19 +tirex-batch --prio=${PRIO} --expire=+14400 map=osmhd bbox=10.93,49.37,11.14,49.63 z=13-19 echo "Daily maintenance finished: `date`" -- 2.25.1