Yurik has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/295450

Change subject: (WIP) Notify TileratorUI on new expiry files
......................................................................

(WIP) Notify TileratorUI on new expiry files

When expiry file has been generated, let Tiletator know
about it. Tilerator will process all files matching the pattern
since the last run (as stored in the state file)

Bug: T108459
Change-Id: If453b48296f01f631ffc4223d56611ed6a16067a
---
M modules/osm/templates/replicate-osm.erb
1 file changed, 11 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/50/295450/1

diff --git a/modules/osm/templates/replicate-osm.erb 
b/modules/osm/templates/replicate-osm.erb
index 875973b..3272724 100644
--- a/modules/osm/templates/replicate-osm.erb
+++ b/modules/osm/templates/replicate-osm.erb
@@ -25,4 +25,14 @@
       --expire-output $EXPIRY_FILE \
       --username osmupdater \
       --database gis \
-      --append $EXTRA_PARAMS -
+      --append $EXTRA_PARAMS - && \
+    /usr/bin/curl \
+      -d expdirpath=<%= @expire_dir %>             \ # expiration files dir
+      -d expmask=expire\\.list\\.*                 \ # regex to match 
expiration files
+      -d statefile=<%= @expire_dir %>/expire.state \ # tilerator uses this 
file to record last imported data file
+      -d fromZoom=10                               \ # new jobs will be 
created from this zoom
+      -d beforeZoom=16                             \ # and until (but not 
including) this zoom
+      -d generatorId=gen                           \ # copy tiles from ("gen" 
will only produce non-empty tiles)
+      -d storageId=v3                              \ # copy tiles to
+      -d deleteEmpty=1                             \ # if tile is empty, make 
sure we don't store it, if it was there before
+      http://localhost:6535/add

-- 
To view, visit https://gerrit.wikimedia.org/r/295450
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If453b48296f01f631ffc4223d56611ed6a16067a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yurik <yu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to