Skip to content

Commit

Permalink
chore: set GOMEMLIMIT in app, parquet (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
annirudh authored Nov 15, 2024
1 parent 0561520 commit 973d79d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.18.17
version: 0.18.18
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
4 changes: 4 additions & 0 deletions charts/operator-wandb/charts/app/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
containerPort: 8125
protocol: TCP
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GLUE_ENABLED
value: "{{ .glueSingletonEnabled }}"
{{- if .onlyService }}
Expand Down
4 changes: 4 additions & 0 deletions charts/operator-wandb/charts/parquet/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ spec:
subPath: redis_ca.pem
{{- end }}
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GORILLA_GLUE_EXECUTE
value: "true"
- name: GORILLA_GLUE_EXECUTE_TASK_NAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ spec:
containerPort: 8087
protocol: TCP
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
{{- if ne .Values.traceRatio 0.0 }}
- name: GORILLA_TRACER
value: "otlp+grpc://{{ .Release.Name }}-otel-daemonset:4317?trace_ratio={{ .Values.traceRatio }}"
Expand Down

0 comments on commit 973d79d

Please sign in to comment.