Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Lower data-layer TTLs #1962

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Lower data-layer TTLs #1962

merged 1 commit into from
Mar 30, 2021

Conversation

sethvargo
Copy link
Member

We currently have two TTLs on many services: the minTTL that is enforced via the database lock, and a minTTL that is enforced by the service being invoked by Cloud Scheduler. There were some mismatches over which was the "authorative" schedule. This commit lowers the minTTLs on most services to 5min. This will prevent concurrent runs and crazy DOsing. However, the intended execution schedule's source of truth is Cloud Scheduler.

I believe this is the root cause of the recent alert, because the "4 hour" windows between the backup job's minTTL and Cloud Scheduler's 4 hours misaligned.

Lowering to 5min also gives us flexibility to invoke jobs manually without hitting the data-layer TTLs.

Release Note

Lower data-layer TTLs on background jobs

We currently have two TTLs on many services: the minTTL that is enforced via the database lock, and a minTTL that is enforced by the service being invoked by Cloud Scheduler. There were some mismatches over which was the "authorative" schedule. This commit lowers the minTTLs on most services to 5min. This will prevent concurrent runs and crazy DOsing. However, the _intended_ execution schedule's source of truth is Cloud Scheduler.

I believe this is the root cause of the recent alert, because the "4 hour" windows between the backup job's minTTL and Cloud Scheduler's 4 hours misaligned.
@sethvargo sethvargo requested a review from a team as a code owner March 30, 2021 19:55
@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Mar 30, 2021
@sethvargo sethvargo enabled auto-merge (squash) March 30, 2021 20:02
@sethvargo sethvargo merged commit db5d1cc into main Mar 30, 2021
@sethvargo sethvargo deleted the sethvargo/ttls branch March 30, 2021 20:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants