diff --git a/cube/model/alarms.yml b/cube/model/alarms.yml index b11de65..d83a7c0 100644 --- a/cube/model/alarms.yml +++ b/cube/model/alarms.yml @@ -157,7 +157,11 @@ cubes: granularity: hour partition_granularity: month refresh_key: - every: 10 minutes + # 24h, not minutes: the fixtures are static, so a shorter + # interval rebuilds a byte-identical result on a 2-vCPU host + # and was a standing CPU load for no gain. Tune this back + # deliberately when imh makes the data genuinely live. + every: 24 hours build_range_start: sql: "SELECT now() - interval '180 days'" build_range_end: diff --git a/cube/model/operations.yml b/cube/model/operations.yml index 65fd621..99f2989 100644 --- a/cube/model/operations.yml +++ b/cube/model/operations.yml @@ -165,7 +165,11 @@ cubes: granularity: day partition_granularity: month refresh_key: - every: 30 minutes + # 24h, not minutes: the fixtures are static, so a shorter + # interval rebuilds a byte-identical result on a 2-vCPU host + # and was a standing CPU load for no gain. Tune this back + # deliberately when imh makes the data genuinely live. + every: 24 hours build_range_start: sql: "SELECT now() - interval '365 days'" build_range_end: diff --git a/cube/model/process_values.yml b/cube/model/process_values.yml index 456aa24..e474915 100644 --- a/cube/model/process_values.yml +++ b/cube/model/process_values.yml @@ -201,7 +201,11 @@ cubes: granularity: hour partition_granularity: month refresh_key: - every: 10 minutes + # 24h, not minutes: the fixtures are static, so a shorter + # interval rebuilds a byte-identical result on a 2-vCPU host + # and was a standing CPU load for no gain. Tune this back + # deliberately when imh makes the data genuinely live. + every: 24 hours build_range_start: sql: "SELECT now() - interval '180 days'" build_range_end: