Skip to content

Commit 498e408

Browse files
committed
Add DS->SQL replay cron job to production
This won't do anything until we set the migration schedule to DATASTORE_PRIMARY. Actions in order: 1. Add this cron job (it'll be a no-op) 2. Run the init-sql-pipeline to populate production's SQL DB 3. Set the SqlReplayCheckpoint to a time before the smear backup that was used in step #1 (maybe 30 minutes) 4. Set the database migration schedule to transition to DATASTORE_PRIMARY at some point
1 parent 0a3774d commit 498e408

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • core/src/main/java/google/registry/env/production/default/WEB-INF

core/src/main/java/google/registry/env/production/default/WEB-INF/cron.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,13 @@
330330
<schedule>every day 15:00</schedule>
331331
<target>backend</target>
332332
</cron>
333+
334+
<cron>
335+
<url><![CDATA[/_dr/cron/fanout?queue=replay-commit-logs-to-sql&endpoint=/_dr/task/replayCommitLogsToSql&runInEmpty]]></url>
336+
<description>
337+
Replays recent commit logs from Datastore to the SQL secondary backend.
338+
</description>
339+
<schedule>every 3 minutes</schedule>
340+
<target>backend</target>
341+
</cron>
333342
</cronentries>

0 commit comments

Comments
 (0)