Page MenuHomePhabricator

[keyserver] Introduce concept of auxiliary node for running certain cronjobs
ClosedPublic

Authored by ashoat on Aug 21 2024, 6:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 31, 3:55 PM
Unknown Object (File)
Tue, Dec 31, 3:55 PM
Unknown Object (File)
Tue, Dec 31, 3:54 PM
Unknown Object (File)
Tue, Dec 31, 3:54 PM
Unknown Object (File)
Nov 26 2024, 10:53 AM
Unknown Object (File)
Nov 26 2024, 3:04 AM
Unknown Object (File)
Nov 22 2024, 9:45 AM
Unknown Object (File)
Nov 13 2024, 9:01 PM
Subscribers

Details

Summary

We'll use the auxiliary node for running the the Comm team dev scripts (RUN_COMM_TEAM_DEV_SCRIPTS) and for database backup.

Depends on D13134

Test Plan

Ran this on my personal server and confirmed that it worked

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/backups
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Unfortunately Phabricator got a little confused on this diff, and is marking some changes in a confusing way. Basically I just pulled out three cronjobs here and put them at the end:

  1. backupDB
  2. createDailyUpdatesThread
  3. postLeaderboard

The first is additionally gated by COMM_JSONCONFIG_facts_backups, and the other two are additionally gated on RUN_COMM_TEAM_DEV_SCRIPTS. When their gates are enabled, they can be run on either the primary or auxiliary nodes.

This revision is now accepted and ready to land.Aug 21 2024, 10:48 PM