Skip to content

Commit

Permalink
Add soft memory limit for controller to address OOMKilled.
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Oct 17, 2022
1 parent fe8f1c5 commit ee3f29e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cron/k8s/controller.release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
args: ["--config=/etc/scorecard/config.yaml", "cron/internal/data/projects.release.csv"]
imagePullPolicy: Always
env:
- name: GOMEMLIMIT
value: "950MiB"
- name: SCORECARD_REQUEST_TOPIC_URL
value: "gcppubsub://projects/openssf/topics/scorecard-batch-requests-releasetest"
- name: SCORECARD_DATA_BUCKET_URL
Expand Down
3 changes: 3 additions & 0 deletions cron/k8s/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
image: gcr.io/openssf/scorecard-batch-controller:stable
args: ["--config=/etc/scorecard/config.yaml", "cron/internal/data/projects.csv"]
imagePullPolicy: Always
env:
- name: GOMEMLIMIT
value: "950MiB"
resources:
limits:
memory: 1Gi
Expand Down

0 comments on commit ee3f29e

Please sign in to comment.