Skip to content

Commit

Permalink
Raising shared memory limit for web api
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 13, 2023
1 parent 2a372ea commit bf9aacf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions osm-seed/templates/web/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ spec:
value: {{ .Values.web.env.NEW_RELIC_LICENSE_KEY | default ""}}
- name: NEW_RELIC_APP_NAME
value: {{ .Values.web.env.NEW_RELIC_APP_NAME | default ""}}
volumeMounts:
- mountPath: /dev/shm
name: shared-memory
volumes:
- emptyDir:
medium: Memory
sizeLimit: {{ .Values.web.sharedMemorySize }}
name: shared-memory
{{- if .Values.web.nodeSelector.enabled }}
nodeSelector:
{{ .Values.web.nodeSelector.label_key }} : {{ .Values.web.nodeSelector.label_value }}
Expand Down
1 change: 1 addition & 0 deletions osm-seed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ web:
minReplicas: 1
maxReplicas: 3
cpuUtilization: 80
sharedMemorySize: 256Mi
# ====================================================================================================
# Variables for memcached. Memcached is used to store session cookies
# ====================================================================================================
Expand Down

0 comments on commit bf9aacf

Please sign in to comment.