From e816913c61fd0f5d42fdda43ec89cb6629f26918 Mon Sep 17 00:00:00 2001 From: mcilwain Date: Wed, 4 Apr 2018 10:55:52 -0700 Subject: [PATCH] Increase # of commit log buckets ~4X for all non-prod environments This also reduces the interval of the commitLogCheckpoint cron job to once every three minutes, as this job needs to load all commit log bucket entities. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191613858 --- java/google/registry/config/files/default-config.yaml | 6 +++--- java/google/registry/env/crash/default/WEB-INF/cron.xml | 2 +- java/google/registry/env/sandbox/default/WEB-INF/cron.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/google/registry/config/files/default-config.yaml b/java/google/registry/config/files/default-config.yaml index bce2a2f9d..aaea0951a 100644 --- a/java/google/registry/config/files/default-config.yaml +++ b/java/google/registry/config/files/default-config.yaml @@ -101,9 +101,9 @@ registryPolicy: the WHOIS database, and may modify these terms at any time. datastore: - # Number of commit log buckets in Datastore. Don't change after initial - # install. - commitLogBucketsNum: 100 + # Number of commit log buckets in Datastore. Lowering this after initial + # install risks losing up to a days' worth of differential backups. + commitLogBucketsNum: 397 # Number of EPP resource index buckets in Datastore. Don’t change after # initial install. diff --git a/java/google/registry/env/crash/default/WEB-INF/cron.xml b/java/google/registry/env/crash/default/WEB-INF/cron.xml index 9cf3a5a46..730f04024 100644 --- a/java/google/registry/env/crash/default/WEB-INF/cron.xml +++ b/java/google/registry/env/crash/default/WEB-INF/cron.xml @@ -107,7 +107,7 @@ This job checkpoints the commit log buckets and exports the diff since last checkpoint to GCS. - every 1 minutes synchronized + every 3 minutes synchronized 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 b410c933d..ad4e01208 100644 --- a/java/google/registry/env/sandbox/default/WEB-INF/cron.xml +++ b/java/google/registry/env/sandbox/default/WEB-INF/cron.xml @@ -128,7 +128,7 @@ This job checkpoints the commit log buckets and exports the diff since last checkpoint to GCS. - every 1 minutes synchronized + every 3 minutes synchronized backend