Commit c110b9b
authored
chore: stagger cron timings for vulnfeeds (#4930)
This is our current cron job dependency graph:
<img width="821" height="523" alt="image"
src="https://github.com/user-attachments/assets/d9c5f416-e9d1-4647-a064-42f89d2cce41"
/>
As such, the following changes are being made:
<b style="font-weight:normal;"><div dir="ltr" style="margin-left:0pt;"
align="left">
Cron Job | Approx duration|New Schedule | Logic / Dependency
-- | -- | -- | --
debian-copyright-mirror | 5min|0 5 * * * | Move to 5:00 AM to give it a
head start.
cpe-repo-gen | 30min|15 5 * * * | Starts after the mirror finishes (5:15
AM).
nvd-mirror | 2min|5 */2 * * * | Offset by 5 mins (5:05, 7:05, etc.) to
avoid the "top of hour" rush.
nvd-cve-osv |6-7hrs |0 6,14 * * * | Starts at 6:00 AM once dependencies
are done. Shift the second run to 2:00 PM to avoid overlapping with the
first.
cve5-to-osv |15min |30 5,13 * * * | Offset slightly from nvd-cve-osv to
stagger CPU load, but early as cve5 has no dependant crons
combine-to-osv | 6min|0 13,21 * * * | Run this ~7 hours after the
nvd-cve-osv jobs start.
alpine-cve-convert | 1min|17 * * * * | Use a "random" minute like 17 to
stay clear of other system tasks.
debian-cve-convert |1.5min |47 * * * * | Offset from the Alpine job to
keep the hourly load flat.
</div></b>1 parent 636fd59 commit c110b9b
8 files changed
Lines changed: 8 additions & 8 deletions
File tree
- deployment/clouddeploy/gke-workers/base
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments