2 sleep $[ ( $RANDOM % 20 ) + 1 ]
3 mkdir -p /srv/tilecache/data/$(date --utc "+%Y/%m")
5 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
7 'http://localhost:8080/19/262106/174485.png' \
8 -H 'authority: c.tile.openstreetmap.org' \
9 -H 'sec-fetch-dest: image' \
10 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
12 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
13 -H 'sec-fetch-site: same-site' \
14 -H 'sec-fetch-mode: no-cors' \
15 -H 'referer: https://www.openstreetmap.org/' \
16 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
17 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/localhost-<%= node.name.split(".").first %>-$(date --utc "+%Y-%m-%dT%H").txt
19 <% @renders.each do |render| -%>
20 <% if render.name != node.name -%>
21 <% render.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
22 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
24 'https://<%= render.name %>/19/262106/174485.png' \
25 -H 'authority: c.tile.openstreetmap.org' \
26 -H 'sec-fetch-dest: image' \
27 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
29 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
30 -H 'sec-fetch-site: same-site' \
31 -H 'sec-fetch-mode: no-cors' \
32 -H 'referer: https://www.openstreetmap.org/' \
33 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
34 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/render-<%= render.name.split(".").first %>-$(date --utc "+%Y-%m-%dT%H").txt
39 <% @caches.each do |cache| -%>
40 <% if cache.name != node.name -%>
41 <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
42 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
44 'https://<%= cache.name %>/19/262106/174485.png' \
45 -H 'authority: c.tile.openstreetmap.org' \
46 -H 'sec-fetch-dest: image' \
47 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
49 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
50 -H 'sec-fetch-site: same-site' \
51 -H 'sec-fetch-mode: no-cors' \
52 -H 'referer: https://www.openstreetmap.org/' \
53 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
54 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/tilecache-<%= cache.name.split(".").first %>-$(date --utc "+%Y-%m-%dT%H").txt