From 603a95d719cce98caa5296654b4b65dc3818fe5a Mon Sep 17 00:00:00 2001 From: gbrodman Date: Mon, 23 Aug 2021 07:59:51 -0600 Subject: [PATCH] Add DS->SQL replay cron job to production (#1292) * 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 --- .../registry/env/production/default/WEB-INF/cron.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/google/registry/env/production/default/WEB-INF/cron.xml b/core/src/main/java/google/registry/env/production/default/WEB-INF/cron.xml index a4325a984..d925836ea 100644 --- a/core/src/main/java/google/registry/env/production/default/WEB-INF/cron.xml +++ b/core/src/main/java/google/registry/env/production/default/WEB-INF/cron.xml @@ -330,4 +330,13 @@ every day 15:00 backend + + + + + Replays recent commit logs from Datastore to the SQL secondary backend. + + every 3 minutes + backend +