-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare second importer cronjob for production (#2194)
Increase run frequency to 3 hourly
- Loading branch information
1 parent
8d46f95
commit 658fe21
Showing
6 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
deployment/clouddeploy/gke-workers/base/importer-deleter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: importer-deleter | ||
spec: | ||
schedule: "* */3 * * *" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: importer-deleter | ||
image: importer | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
- mountPath: "/work" | ||
name: "ssd" | ||
securityContext: | ||
privileged: true | ||
resources: | ||
requests: | ||
cpu: 1 | ||
memory: "10G" | ||
limits: | ||
cpu: 1 | ||
memory: "11G" | ||
restartPolicy: OnFailure | ||
volumes: | ||
- name: "ssd" | ||
hostPath: | ||
path: "/mnt/disks/ssd0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deployment/clouddeploy/gke-workers/environments/oss-vdb-test/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
deployment/clouddeploy/gke-workers/environments/oss-vdb/importer-deleter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: importer-deleter | ||
spec: | ||
suspend: true | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: importer-deleter | ||
env: | ||
- name: GOOGLE_CLOUD_PROJECT | ||
value: oss-vdb | ||
image: importer | ||
args: | ||
- --delete | ||
- --delete_threshold_pct=20 | ||
- --public_log_bucket=osv-public-import-logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters