Gehel has submitted this change and it was merged.

Change subject: maps - increase osm replication frequency to hourly
......................................................................


maps - increase osm replication frequency to hourly

This changes the replication frequency from daily to hourly. At the same
time as this change is deployed, the /srv/osmosis/state.txt has to be
replaced by the appropriate state for the hourly update. For example:
https://planet.openstreetmap.org/replication/hour/000/035/294.state.txt

In a first step, only activate hourly replication on maps-test to validate
that it works correctly, then configure all maps master for hourly
replication.

Bug: T137939
Change-Id: I35106122df7ade42e46f630d0bb820300a8dcde8
---
M hieradata/hosts/maps-test2001.yaml
M modules/role/manifests/maps/master.pp
2 files changed, 10 insertions(+), 4 deletions(-)

Approvals:
  Gehel: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/hieradata/hosts/maps-test2001.yaml 
b/hieradata/hosts/maps-test2001.yaml
index c5dc28a..d3f4f48 100644
--- a/hieradata/hosts/maps-test2001.yaml
+++ b/hieradata/hosts/maps-test2001.yaml
@@ -1,2 +1,4 @@
 cassandra::rack: a5
 do_paging: false
+role::maps::master::planet_sync_period: 'hour'
+role::maps::master::planet_sync_hour:   '*'
diff --git a/modules/role/manifests/maps/master.pp 
b/modules/role/manifests/maps/master.pp
index e665784..902f83e 100644
--- a/modules/role/manifests/maps/master.pp
+++ b/modules/role/manifests/maps/master.pp
@@ -1,5 +1,9 @@
 # Sets up a maps server master
-class role::maps::master {
+class role::maps::master(
+    $planet_sync_period = 'day', # Remove this as soon as we get down to minute
+    $planet_sync_hour = '1',
+    $planet_sync_minute = '27',
+) {
     include ::postgresql::master
     include ::role::maps::postgresql_common
     include ::osm
@@ -102,9 +106,9 @@
         expire_levels         => '15',
         num_threads           => 4,
         pg_password           => $osmupdater_pass,
-        period                => 'day', # Remove thse as soon as we get down 
to minute
-        hour                  => '1',
-        minute                => '27',
+        period                => $planet_sync_period,
+        hour                  => $planet_sync_hour,
+        minute                => $planet_sync_minute,
         postreplicate_command => 'sudo -u tileratorui 
/usr/local/bin/notify-tilerator',
     }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I35106122df7ade42e46f630d0bb820300a8dcde8
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gehel <gleder...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Gehel <gleder...@wikimedia.org>
Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com>
Gerrit-Reviewer: Yurik <yu...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to