From 6022353e572e5364672ed27c5912db8e16a1d570 Mon Sep 17 00:00:00 2001 From: weiminyu Date: Fri, 4 Jan 2019 13:49:35 -0800 Subject: [PATCH] Enable daily backup of Datastore in sandbox and production This uses the new backup implementation, and starts after the old exportSnapshot task has completed. The old task will be removed later. Daily backups in alpha has been running successfully. Manually triggered exports in both environments also completed successfully. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227908077 --- .../env/alpha/default/WEB-INF/cron.xml | 7 +++++-- .../env/production/default/WEB-INF/cron.xml | 18 ++++++++++++++++++ .../env/sandbox/default/WEB-INF/cron.xml | 18 ++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/java/google/registry/env/alpha/default/WEB-INF/cron.xml b/java/google/registry/env/alpha/default/WEB-INF/cron.xml index 21535c5b2..845822129 100644 --- a/java/google/registry/env/alpha/default/WEB-INF/cron.xml +++ b/java/google/registry/env/alpha/default/WEB-INF/cron.xml @@ -152,8 +152,11 @@ - every day 07:00 + + To facilitate troubleshooting, run after the exportSnapshot task below (typically finishes in + 90 minutes in production) has completed. + TODO(b/122271637): move to 06:00 (UTC) when the exportSnapshot task is removed. --> + every day 09:00 backend diff --git a/java/google/registry/env/production/default/WEB-INF/cron.xml b/java/google/registry/env/production/default/WEB-INF/cron.xml index c1ba7d62d..cf6090023 100644 --- a/java/google/registry/env/production/default/WEB-INF/cron.xml +++ b/java/google/registry/env/production/default/WEB-INF/cron.xml @@ -174,6 +174,24 @@ backend + + + + This job fires off a Datastore managed-export job that generates snapshot files in GCS. + It also enqueues a new task to wait on the completion of that job and then load the resulting + snapshot into bigquery. + + + every day 09:00 + backend + + diff --git a/java/google/registry/env/sandbox/default/WEB-INF/cron.xml b/java/google/registry/env/sandbox/default/WEB-INF/cron.xml index 9ed16a801..a02d57f7c 100644 --- a/java/google/registry/env/sandbox/default/WEB-INF/cron.xml +++ b/java/google/registry/env/sandbox/default/WEB-INF/cron.xml @@ -151,6 +151,24 @@ backend + + + + This job fires off a Datastore managed-export job that generates snapshot files in GCS. + It also enqueues a new task to wait on the completion of that job and then load the resulting + snapshot into bigquery. + + + every day 09:00 + backend + +